Created
February 18, 2022 02:51
-
-
Save ananich/841a074f3ae4df659f560342704e613f to your computer and use it in GitHub Desktop.
Workato on-prem agent Docker file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:11-jre-slim | |
LABEL maintainer="<your email goes here>" | |
RUN apt-get update -y \ | |
&& apt-get upgrade -y | |
# Set Workato OPA agent dir | |
ARG WORKATO_OPA_DIR="/opt/workato-agent" | |
# Create Workato user and group | |
RUN useradd -U -d $WORKATO_OPA_DIR workato | |
WORKDIR $WORKATO_OPA_DIR | |
# ADD command gunzips and untars the file itself, | |
ADD workato-agent-linux-x64-2.9.4.tar.gz /opt/ | |
RUN rm -rf $WORKATO_OPA_DIR/jre/ | |
# Copy 3rd party libraries to lib_ext dir | |
#COPY lib_ext/libsapjco3.so $WORKATO_OPA_DIR/lib_ext/ | |
#COPY lib_ext/sapidoc3.jar $WORKATO_OPA_DIR/lib_ext/ | |
#COPY lib_ext/sapjco3.jar $WORKATO_OPA_DIR/lib_ext/ | |
# Copy config file | |
COPY config.yml $WORKATO_OPA_DIR/conf/config.yml | |
RUN chown -R workato:workato $WORKATO_OPA_DIR | |
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \ | |
-cp "/opt/workato-agent/lib/*" com.workato.agent.Main \ | |
--pem=/opt/workato-agent/cert/tls.crt \ | |
--key=/opt/workato-agent/cert/tls.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment