Skip to content

Instantly share code, notes, and snippets.

@AndrewRayCode
Last active September 20, 2019 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewRayCode/ca26a077564363d53d0f86d758af50c5 to your computer and use it in GitHub Desktop.
Save AndrewRayCode/ca26a077564363d53d0f86d758af50c5 to your computer and use it in GitHub Desktop.
SumoJanus run error
FROM anapsix/alpine-java
RUN apk update \
&& apk add ca-certificates wget tar \
&& update-ca-certificates
RUN wget --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" https://script-collection.s3.amazonaws.com/sfdc/r3.1.0/sumojanus-salesforce-dist.3.1.0.tar.gz
RUN tar xzvf sumojanus-salesforce-dist.3.1.0.tar.gz
RUN echo '[salesforce]' > /sumojanus-salesforce/conf/sumologic.properties \
&& echo 'url = https://test.salesforce.com' > /sumojanus-salesforce/conf/sumologic.properties \
&& echo 'token_file_path = ${path}/data/salesforce.token' > /sumojanus-salesforce/conf/sumologic.properties \
&& echo 'record_file_path = ${path}/data/sf_readfiles.dat' > /sumojanus-salesforce/conf/sumologic.properties \
&& echo '# if you are using a SFDC sandbox environment, set the following to true' > /sumojanus-salesforce/conf/sumologic.properties \
&& echo 'sandbox = true' > /sumojanus-salesforce/conf/sumologic.properties \
&& echo 'interval = hourly' > /sumojanus-salesforce/conf/sumologic.properties
WORKDIR /sumojanus-salesforce
ENTRYPOINT ./bin/SumoJanus_SF.bash -s
# Copy the Dockerfile into a local folder and then run these commands in that folder:
docker build -t test/sumologic .
docker run -it test/sumologic:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment