FROM openjdk:8 USER root RUN pwd # Agent version ENV AGENT_VERSION 2.3.2 RUN mkdir /opt/ignite ENV AGENT_HOME /opt/ignite/ignite-web-agent-${AGENT_VERSION} RUN mkdir ${AGENT_HOME} RUN chmod -R 777 /opt/ignite/ # Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then RUN apt-get update && apt-get install -y --no-install-recommends \ unzip \ curl \ && rm -rf /var/lib/apt/lists/* ENV AGENT_ZIP=ignite-web-agent-${AGENT_VERSION}.zip COPY ${AGENT_ZIP} /opt/ignite WORKDIR /opt/ignite RUN unzip ${AGENT_ZIP} \ && rm ${AGENT_ZIP} RUN chmod -R 777 ${AGENT_HOME} RUN chmod +x $AGENT_HOME/ignite-web-agent.sh CMD $AGENT_HOME/ignite-web-agent.sh -d ${DRIVER_FOLDER} -n ${NODE_URI} -s ${SERVER_URI} -t ${TOKENS}