rkleine commented on pull request #182: URL: https://github.com/apache/couchdb-docker/pull/182#issuecomment-641270279
Hi @kocolosk, Im using a local docker clouseau image. Maybe this help you some time ```ini ; ./etc/clouseau.ini [clouseau] [email protected] cookie=monster dir=/var/lib/clouseau max_indexes_open=500 ``` ```properties # ./etc/log4j.properties log4j.rootLogger=debug, CONSOLE log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %c [%p] %m%n ``` ```dockerfile # Dockerfile FROM openjdk:8-alpine RUN apk add --update unzip RUN wget -q -O clouseau-2.17.0-dist.zip https://github.com/cloudant-labs/clouseau/releases/download/2.17.0/clouseau-2.17.0-dist.zip RUN unzip clouseau-2.17.0-dist.zip RUN rm -rf clouseau-2.17.0-dist.zip RUN mkdir -p /opt/clouseau/etc COPY etc /opt/clouseau/etc CMD java -server \ -classpath '/clouseau-2.17.0/*' \ -Xmx2G -Dsun.net.inetaddr.ttl=30 \ -Dsun.net.inetaddr.negative.ttl=30 \ -Dlog4j.configuration=file:/opt/clouseau/etc/log4j.properties \ -XX:OnOutOfMemoryError="kill -9 %p" \ -XX:+UseConcMarkSweepGC \ -XX:+CMSParallelRemarkEnabled com.cloudant.clouseau.Main /opt/clouseau/etc/clouseau.ini ``` ```shell # build docker build --tag clouseau:2.17.0 --tag clouseau:latest . ``` With `docker run` ```shell # start couchdb docker run --rm -p "5984:5984" --name couchdb -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=admin -e NODENAME=127.0.0.1 -e ERL_FLAGS="-setcookie monster" couchdb:3.1.0 # start cluseau docker run --rm --network=container:couchdb --name clouseau clouseau:2.17.0 ``` Or with `docker-compose up` ```yaml version: '3.8' services: couchdb1: image: couchdb:3.1.0 restart: always ports: - 5984:5984 environment: - COUCHDB_USER=admin - COUCHDB_PASSWORD=admin - NODENAME=127.0.0.1 - ERL_FLAGS=-setcookie monster clouseau1: image: clouseau:2.17.0 restart: always depends_on: - couchdb1 network_mode: service:couchdb1 ``` ```shell docker-compose up ``` ```shell # test curl -sSL http://localhost:5984 | grep "search" ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
