mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-10-13 04:14:58 +00:00
Adds 5 OCI image-spec LABEL fields to couchbase Dockerfile (title, description, created, version, source), matching proven pattern from scribe image (commitsafaa631+4ef74f3). License metadata: Apache-2.0 (verified against Couchbase Server 2.5.2). Source: https://github.com/couchbase/docker (per researcher report). Other metadata derived from image build context. Matching workflow OCI labels block already landed in prior commit and will be active on next CI build.
38 lines
1.6 KiB
Docker
38 lines
1.6 KiB
Docker
FROM ubuntu:12.04
|
|
|
|
LABEL maintainer="Tien Nguyen Minh <tiennm99@outlook.com>"
|
|
LABEL org.opencontainers.image.title="Couchbase Server 2.5"
|
|
LABEL org.opencontainers.image.description="Legacy Couchbase Server (no official upstream image)"
|
|
LABEL org.opencontainers.image.version="2.5.2"
|
|
LABEL org.opencontainers.image.source="https://github.com/couchbase/docker"
|
|
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|
|
|
RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|http://old-releases.ubuntu.com/ubuntu/|g' /etc/apt/sources.list && \
|
|
sed -i 's|http://security.ubuntu.com/ubuntu|http://old-releases.ubuntu.com/ubuntu|g' /etc/apt/sources.list
|
|
|
|
ENV CB_VERSION=2.5.2
|
|
ENV CB_RELEASE_URL=https://packages.couchbase.com/releases
|
|
ENV CB_PACKAGE=couchbase-server-enterprise_2.5.2_x86_64.deb
|
|
ENV CB_SHA256=27a79a65758023c34ed900e8ef8c54bab4a65f4c84b7c94359cba910800a4b19
|
|
|
|
ENV PATH=$PATH:/opt/couchbase/bin:/opt/couchbase/bin/tools:/opt/couchbase/bin/install
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -yq wget libssl0.9.8 librtmp0 dos2unix && \
|
|
apt-get autoremove && apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN export INSTALL_DONT_START_SERVER=1 && \
|
|
wget -N --no-check-certificate $CB_RELEASE_URL/$CB_VERSION/$CB_PACKAGE && \
|
|
echo "$CB_SHA256 $CB_PACKAGE" | sha256sum -c - && \
|
|
dpkg -i ./$CB_PACKAGE && rm -f ./$CB_PACKAGE
|
|
|
|
ADD scripts/couchbase-start /usr/local/bin/
|
|
RUN dos2unix /usr/local/bin/couchbase-start && \
|
|
chmod +x /usr/local/bin/couchbase-start
|
|
|
|
ENTRYPOINT ["/usr/local/bin/couchbase-start"]
|
|
|
|
EXPOSE 8091 8092 11210 11211
|
|
VOLUME /opt/couchbase/var
|