FROM iotacafe/maven:3.5.4.oracle8u181.1.webupd8.1.1-1 as local_stage_build MAINTAINER [email protected] WORKDIR /iri COPY . /iri RUN mvn clean package # execution image FROM iotacafe/java:oracle8u181.1.webupd8.1-1 RUN apt-get update && apt-get install -y --no-install-recommends \ jq curl socat \ && rm -rf /var/lib/apt/lists/* COPY --from=local_stage_build /iri/target/iri*.jar /iri/target/ COPY docker/entrypoint.sh / # Java related options. Defaults set as below ENV JAVA_OPTIONS="-XX:+UnlockExperimentalVMOptions -XX:+DisableAttachMechanism -XX:InitiatingHeapOccupancyPercent=60 -XX:G1MaxNewSizePercent=75 -XX:MaxGCPauseMillis=10000 -XX:+UseG1GC" ENV JAVA_MIN_MEMORY 2G ENV JAVA_MAX_MEMORY 4G # Additional custom variables. See DOCKER.md for details ENV DOCKER_IRI_JAR_PATH "/iri/target/iri*.jar" ENV DOCKER_IRI_REMOTE_LIMIT_API "interruptAttachToTangle, attachToTangle, addNeighbors, removeNeighbors, getNeighbors" # Setting this to 1 will have socat exposing 14266 and pointing it on # localhost. See /entrypoint.sh # !!! DO NOT DOCKER EXPOSE (-p) 14266 as the remote api settings # will not be applied on that port !!! # You also have to maintain $DOCKER_IRI_MONITORING_API_PORT_DESTINATION # based on the actual API port exposed via IRI ENV DOCKER_IRI_MONITORING_API_PORT_ENABLE 0 ENV DOCKER_IRI_MONITORING_API_PORT_DESTINATION 14700 WORKDIR /iri/data ENTRYPOINT [ "/entrypoint.sh" ]