2022-12-01 14:42:56 +01:00
|
|
|
FROM couchdb:3.2.1
|
|
|
|
|
|
|
|
ENV COUCHDB_USER admin
|
|
|
|
ENV COUCHDB_PASSWORD admin
|
|
|
|
EXPOSE 5984
|
|
|
|
|
2022-12-01 18:08:49 +01:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common wget unzip curl && \
|
2023-05-03 17:48:53 +02:00
|
|
|
apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main' && \
|
|
|
|
apt-add-repository 'deb http://archive.debian.org/debian stretch-backports main' && \
|
2022-12-01 18:08:49 +01:00
|
|
|
apt-get update && apt-get install -y --no-install-recommends openjdk-8-jre && \
|
|
|
|
rm -rf /var/lib/apt/lists/
|
2022-12-01 14:42:56 +01:00
|
|
|
|
|
|
|
# setup clouseau
|
|
|
|
WORKDIR /
|
|
|
|
RUN wget https://github.com/cloudant-labs/clouseau/releases/download/2.21.0/clouseau-2.21.0-dist.zip && \
|
|
|
|
unzip clouseau-2.21.0-dist.zip && \
|
|
|
|
mv clouseau-2.21.0 /opt/clouseau && \
|
|
|
|
rm clouseau-2.21.0-dist.zip
|
|
|
|
|
|
|
|
WORKDIR /opt/clouseau
|
|
|
|
RUN mkdir ./bin
|
|
|
|
ADD clouseau/clouseau ./bin/
|
|
|
|
ADD clouseau/log4j.properties clouseau/clouseau.ini ./
|
|
|
|
|
|
|
|
# setup CouchDB
|
|
|
|
WORKDIR /opt/couchdb
|
|
|
|
ADD couch/vm.args couch/local.ini ./etc/
|
|
|
|
|
|
|
|
WORKDIR /
|
2022-12-01 18:08:49 +01:00
|
|
|
ADD build-target-paths.sh .
|
2022-12-01 14:42:56 +01:00
|
|
|
ADD runner.sh ./bbcouch-runner.sh
|
2022-12-01 18:08:49 +01:00
|
|
|
RUN chmod +x ./bbcouch-runner.sh /opt/clouseau/bin/clouseau ./build-target-paths.sh
|
|
|
|
CMD ["./bbcouch-runner.sh"]
|