Skip to content

Instantly share code, notes, and snippets.

@ananich
Created Feb 18, 2022
Embed
What would you like to do?
Workato on-prem agent Docker file
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