Skip to content

Instantly share code, notes, and snippets.

@Malinskiy
Created July 16, 2018 17:09
Show Gist options
  • Save Malinskiy/5553e31bb9d4f6cb95aec5dc820e6e33 to your computer and use it in GitHub Desktop.
Save Malinskiy/5553e31bb9d4f6cb95aec5dc820e6e33 to your computer and use it in GitHub Desktop.
FROM groovy:3.0-alpine
 
ADD src/main/groovy/local.groovy /home/groovy/
ADD src/main/groovy/remote.groovy /home/groovy/
ADD src/main/groovy/run.sh /home/groovy/
ADD src/main/groovy/grapeConfig.xml /home/groovy/.groovy/
# repeating the command is a hacky way for http retrying
RUN groovy -Dgrape.root=/home/groovy/grapes -Dgroovy.grape.report.downloads=true -Divy.message.logger.level=4 local.groovy -do_nothing || \
groovy -Dgrape.root=/home/groovy/grapes -Dgroovy.grape.report.downloads=true -Divy.message.logger.level=4 local.groovy -do_nothing || \
groovy -Dgrape.root=/home/groovy/grapes -Dgroovy.grape.report.downloads=true -Divy.message.logger.level=4 local.groovy -do_nothing || \
groovy -Dgrape.root=/home/groovy/grapes -Dgroovy.grape.report.downloads=true -Divy.message.logger.level=4 local.groovy -do_nothing
CMD cd /home/groovy && ./run.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment