Skip to content

Instantly share code, notes, and snippets.

@christian-posta
Last active February 16, 2017 23:09
Show Gist options
  • Save christian-posta/20f8863250bf89976b967c60489f25a8 to your computer and use it in GitHub Desktop.
Save christian-posta/20f8863250bf89976b967c60489f25a8 to your computer and use it in GitHub Desktop.
Using f8 s2i-java for binary builds
so... first make a dir $ROOT_DIR
then make $ROOT_DIR/deployments
copy spring-boot.jar to $ROOT_DIR/deployments
then from $ROOT_DIR run this:
oc import-image --from=fabric8/s2i-java:1.3 s2i-java --confirm
oc new-build --binary=true --strategy=source --image-stream=s2i-java --name=sample-foo
oc start-build sample-foo --from-dir=.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment