Skip to content

Instantly share code, notes, and snippets.

@jmesnil
Last active May 6, 2021 12:11
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 jmesnil/7a42e39e1947e4f89521ab16162aae55 to your computer and use it in GitHub Desktop.
Save jmesnil/7a42e39e1947e4f89521ab16162aae55 to your computer and use it in GitHub Desktop.
Demo of wildfly-s2i script

Install the script

$ cd ~/tmp
$ curl -Lo wildfly-s2i https://github.com/jmesnil/wildfly-s2i/releases/download/22.x/wildfly-s2i \
    && chmod u+x wildfly-s2i

Get some help

$ ./wildfly-s2i

Build an application image from a local Java project

$ cd ~/Developer/quickstart/microprofile-config
$ git checkout 23.0.2.SP1

$ ~/tmp/wildfly-s2i build \
    -l cloud-server,microprofile-platform \
    microprofile-config-app \
    .

Run the application

$ docker run -p8080:8080 -e CONFIG_PROP="Welcome to WildFly" microprofile-config-app

$ curl http://:8080/config/value

Full access to S2I Goodies

$ cd ~/tmp
$ ./wildfly-s2i build \
      -l cloud-server,microprofile-platform \
      my-app-2 \
      https://github.com/wildfly/quickstart.git \
      --context-dir=microprofile-config \
      --ref=23.0.2.Final \
      --incremental
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment