2022-12-02 02:42:56 +13:00
|
|
|
FROM couchdb:3.2.1
|
|
|
|
|
|
|
|
ENV COUCHDB_USER admin
|
|
|
|
ENV COUCHDB_PASSWORD admin
|
|
|
|
EXPOSE 5984
|
2023-07-07 08:49:25 +12:00
|
|
|
EXPOSE 4984
|
2022-12-02 02:42:56 +13:00
|
|
|
|
2022-12-02 06:08:49 +13:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common wget unzip curl && \
|
2023-10-19 02:51:49 +13:00
|
|
|
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add - && \
|
2023-05-04 05:22:19 +12:00
|
|
|
apt-add-repository 'deb http://security.debian.org/debian-security bullseye-security/updates main' && \
|
2023-05-04 03:48:53 +12:00
|
|
|
apt-add-repository 'deb http://archive.debian.org/debian stretch-backports main' && \
|
2023-08-15 21:59:46 +12:00
|
|
|
apt-add-repository 'deb https://packages.adoptium.net/artifactory/deb bullseye main' && \
|
|
|
|
apt-get update && apt-get install -y --no-install-recommends temurin-8-jdk && \
|
2022-12-02 06:08:49 +13:00
|
|
|
rm -rf /var/lib/apt/lists/
|
2022-12-02 02:42:56 +13: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/
|
|
|
|
|
2023-07-07 08:49:25 +12:00
|
|
|
WORKDIR /opt/sqs
|
|
|
|
ADD sqlite/sqs sqlite/better_sqlite3.node ./
|
|
|
|
|
2022-12-02 02:42:56 +13:00
|
|
|
WORKDIR /
|
|
|
|
ADD runner.sh ./bbcouch-runner.sh
|
2023-12-09 05:13:09 +13:00
|
|
|
RUN chmod +x ./bbcouch-runner.sh /opt/clouseau/bin/clouseau /opt/sqs/sqs
|
2022-12-02 06:08:49 +13:00
|
|
|
CMD ["./bbcouch-runner.sh"]
|