Last active
July 23, 2019 03:04
-
-
Save jkutner/951991cf40ed4840eaa4ab7e3d1eecd2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[package] | |
id = "io.buildpacks.zulu" | |
name = "Azul Zulu Buildpack" | |
version = "0.0.9" | |
[detect] | |
provides = [ | |
"jdk" | |
] | |
# if there is a bin/build, this will always run first. | |
[[build.layers]] | |
id = "jdk" # lifecycle will check if this layer exists/cached | |
cache = "true" | |
launch = "true" | |
build = "true" | |
run = [ | |
"export JDK_URL=https://cdn.azul.com/zulu/bin/zulu8.28.0.1-jdk8.0.163-linux_x64.tar.gz", | |
"wget -q -O - $JDK_URL | tar pxz -C $1/jdk --strip-components=1" | |
] | |
[build.layers.metadata] | |
version = "zulu-1.8.0_163" | |
[build.layers.env] | |
JAVA_HOME = "$1/jdk" | |
LD_LIBRARY_PATH = "$JAVA_HOME/jre/lib/amd64/server" | |
[[build.layers.profile]] | |
name = "jdk.sh" | |
script = [ | |
"export JAVA_HOME=$1/jdk", | |
"export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server" | |
] | |
[[build.launch.processes]] | |
type = "web" | |
command = "java -jar *.jar" |
This file contains hidden or 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
[buildpack] | |
id = "io.buildpacks.warbler" | |
name = "Warbler Buildpack" | |
version = "0.0.9" | |
[buildpack.detect] | |
requires = [ | |
"jruby", | |
"warbler", | |
"bundler" | |
] | |
provides = [ | |
"war" | |
] | |
# if there is a bin/build, this will always run first. | |
[buildpack.build] | |
run = [ | |
"rake war", | |
"rake db:migrate" | |
] | |
[[buildpack.build.launch.processes]] | |
type = "web" | |
command = "java -jar myapp.war" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment