summaryrefslogtreecommitdiffstats
path: root/Services/couchbase/Dockerfile
blob: 48465d347705a91c56a113a9281e7f8d98b6dbda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>

USER root
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/
RUN chmod 775 /bin/run.sh && \
    mkdir -p $LOG_PATH && \
    touch $STARTUPLOG

EXPOSE 11211
VOLUME [$LOG_PATH]
CMD ["/bin/run.sh"]