mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-10-15 06:16:06 +00:00
Refactor Couchbase 2.5 image and remove old couchbase directory
Removed the legacy couchbase/ directory and its scripts, consolidating the Docker build to couchbase-2.5. Updated the Dockerfile to download dependencies and the Couchbase package directly, simplifying the build process. Updated the workflow to remove manual .deb downloads and changed the image tag to 'latest'. Updated README to reflect these changes and clarify credits.
This commit is contained in:
1 parent
f9568ec53d
commit
090304db01
7 files changed
+21
-190
No files matched your search
+16
-19
@@ -1,27 +1,24 @@
|
||||
# Docs: https://docs.couchbase.com/couchbase-manual-2.5/cb-install
|
||||
|
||||
FROM ubuntu:12.04
|
||||
|
||||
LABEL maintainer="Tien Nguyen Minh <tiennm99@outlook.com>"
|
||||
|
||||
COPY *.deb /tmp/
|
||||
ARG CB_VERSION=2.5.2
|
||||
ARG CB_RELEASE_URL=https://packages.couchbase.com/releases
|
||||
ARG CB_PACKAGE=couchbase-server-enterprise_2.5.2_x86_64.deb
|
||||
|
||||
RUN dpkg -i /tmp/libgpg-error0_*.deb && \
|
||||
dpkg -i /tmp/libgcrypt11_*.deb && \
|
||||
dpkg -i /tmp/libp11-kit0_*.deb && \
|
||||
dpkg -i /tmp/libtasn1-3_*.deb && \
|
||||
dpkg -i /tmp/libgnutls26_*.deb && \
|
||||
dpkg -i /tmp/librtmp0_*.deb && \
|
||||
dpkg -i /tmp/libssl0.9.8_*.deb && \
|
||||
export INSTALL_DONT_START_SERVER=1 && \
|
||||
dpkg -i /tmp/couchbase-server-enterprise_*.deb && \
|
||||
rm /tmp/*.deb
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Expose ports
|
||||
# 8091: Web Administration Port
|
||||
# 8092: Couchbase API Port
|
||||
# 11210: Internal/External Bucket Port
|
||||
# 11211: Client interface (proxy)
|
||||
EXPOSE 8091 8092 11210 11211
|
||||
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 && \
|
||||
apt-get update
|
||||
|
||||
RUN apt-get install -y wget
|
||||
RUN wget --no-check-certificate $CB_RELEASE_URL/$CB_VERSION/$CB_PACKAGE
|
||||
RUN apt-get install -y libssl0.9.8
|
||||
RUN apt-get install -y librtmp0
|
||||
RUN export INSTALL_DONT_START_SERVER=1 && \
|
||||
dpkg -i ./$CB_PACKAGE && rm -f ./$CB_PACKAGE
|
||||
|
||||
EXPOSE 8091, 8092, 11210, 11211
|
||||
|
||||
CMD ["/opt/couchbase/bin/couchbase-server", "--", "-noinput"]
|
||||
Reference in new issue
Block a user