diff options
author | startxfr <clarue@startx.fr> | 2015-12-06 21:32:59 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2015-12-06 21:32:59 +0100 |
commit | fb1274af7b8dd8781e15f3eb464a213ba41e84b0 (patch) | |
tree | c114e8decd607993b537af0d3d46861c7d51fcdb /Services | |
parent | 8d2acbe203d6905c51a28ebe81db7ac90d0df52d (diff) | |
download | phpmyadmin-fb1274af7b8dd8781e15f3eb464a213ba41e84b0.tar.gz phpmyadmin-fb1274af7b8dd8781e15f3eb464a213ba41e84b0.tar.bz2 phpmyadmin-fb1274af7b8dd8781e15f3eb464a213ba41e84b0.tar.xz phpmyadmin-fb1274af7b8dd8781e15f3eb464a213ba41e84b0.zip |
start installation of couchbase container. For now only supported under centos. Moving this code to centos7 image
Diffstat (limited to 'Services')
-rw-r--r-- | Services/couchbase/Dockerfile | 9 | ||||
-rw-r--r-- | Services/couchbase/run.sh | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/Services/couchbase/Dockerfile b/Services/couchbase/Dockerfile index 6568f53..48465d3 100644 --- a/Services/couchbase/Dockerfile +++ b/Services/couchbase/Dockerfile @@ -2,8 +2,13 @@ FROM startx/fedora MAINTAINER Christophe LARUE <dev@startx.fr> USER root -RUN dnf -y install couchbase && \ - dnf clean all +ENV CB_VERSION=4.1.0-dp \ + CB_RELEASE_URL=http://packages.couchbase.com/releases/$CB_VERSION \ + CB_PACKAGE=couchbase-server-$CB_VERSION-centos7.x86_64.rpm +RUN dnf -y install python-httplib2 openssl && \ + dnf clean all && \ + wget $CB_RELEASE_URL/$CB_PACKAGE && \ + rpm --install $CB_PACKAGE ENV STARTUPLOG=/data/logs/couchbase/startup.log \ LOG_PATH=/data/logs/couchbase COPY *.sh /bin/ diff --git a/Services/couchbase/run.sh b/Services/couchbase/run.sh index f853ada..4794ee0 100644 --- a/Services/couchbase/run.sh +++ b/Services/couchbase/run.sh @@ -47,7 +47,8 @@ function end_config { function start_daemon { echo "=> Starting couchbase daemon ..." | tee -a $STARTUPLOG display_container_started | tee -a $STARTUPLOG - exec couchbase -u daemon -v +# exec couchbase -u daemon -v +exec tail -f /etc/redhat-release } |