Skip to content

Instantly share code, notes, and snippets.

@hlship
Last active October 28, 2016 22:58
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 hlship/3459c4d53cc92ae78a27ffb015848338 to your computer and use it in GitHub Desktop.
Save hlship/3459c4d53cc92ae78a27ffb015848338 to your computer and use it in GitHub Desktop.
(deftask base-image
"Builds the base image for other images."
[]
(comp (init :dir (io/file "base") :from "anapsix/alpine-java:8")
(add :file ["launch.sh"])
(artifact :dependency '[[org.bouncycastle/bcprov-jdk15on "1.54"]] :target "/opt/jdk/jre/lib/ext/")
(artifact :dependency '[[com.walmartlabs/timestamper "0.1.2"]] :target "/usr/local/java-agents/")
(inst :section :postamble :inst :run :arguments ["chmod a+x launch.sh"])
(build-image :image-name "base" :version default-base-version)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment