diff --git a/Dockerfile b/Dockerfile index 4f8f2a2f29..475a939822 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,14 @@ RUN mvn package -pl eclair-node -am -DskipTests -Dgit.commit.id=notag -Dgit.comm # We currently use a debian image for runtime because of some jni-related issue with sqlite FROM openjdk:8u181-jre-slim WORKDIR /app + +# install jq for eclair-cli +RUN apt-get update && apt-get install -y bash jq curl + +# copy and install eclair-cli executable +COPY --from=BUILD /usr/src/eclair-core/eclair-cli . +RUN chmod +x eclair-cli && mv eclair-cli /sbin/eclair-cli + # Eclair only needs the eclair-node-*.jar to run COPY --from=BUILD /usr/src/eclair-node/target/eclair-node-*.jar . RUN ln `ls` eclair-node.jar diff --git a/README.md b/README.md index e5c086d723..cf308835b6 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,11 @@ If you want to persist the data directory, you can make the volume to your host docker run -ti --rm -v "/path_on_host:/data" -e "JAVA_OPTS=-Declair.printToConsole" acinq/eclair ``` +If you enabled the API you can check the status of eclair using the command line tool: +``` +docker exec eclair-cli -p foobar getinfo +``` + ## Plugins For advanced usage, Eclair supports plugins written in Scala, Java, or any JVM-compatible language.