Wildfly 8 - CentOS Docker image
This image is available as trusted build in Docker Index:
You can install it using:
$ docker pull openshift/wildfly-8-centos
This folder contains scripts that are run by STI:
Is used to restore the build artifacts from the previous built (in case of
'incremental build'), to install the sources into location from where the
application will be run and prepare the application for deployment (eg.
installing maven dependencies, building java code, etc..).
In addition, the assemble script will copy artifacts provided in the
application source project into the Wildfly installation:
Wildfly configuration files from the <application source>/cfg are copied
into the wildfly configuration directory.
Pre-built war files from the <application source>/deployments are copied
into the wildfly deployment directory.
Wildfly modules from the <application source>/provided_modules are copied
into the wildfly modules directory.
This script is responsible for running the application, by using the
Wildfly application server.
In order to do an incremental build (iow. re-use the build artifacts
from an already built image in a new image), this script is responsible for
archiving those. In this image, this script will archive the
maven dependencies and previously built java class files.
Contains script used to launch wildfly after performing environment variable
substitution into the standalone.xml configuration file.
Contains the default standalone.xml configuration which can be overriden by applications
that provide a standalone.xml in <application_src>/cfg.
Contains commonly used modules such as postgres and mysql database drivers.
STI_SCRIPTS_URL (default: '.sti/bin')
This variable specifies the location of directory, where assemble, run and
save-artifacts scripts are downloaded/copied from. By default the scripts
in this repository will be used, but users can provide an alternative
location and run their own scripts.
In order to test your changes to this STI image or to the STI scripts, you can
test/run script. Before that, you have to build the 'candidate' image:
$ docker build -t openshift/wildfly-8-centos-candidate .
After that you can execute
./test/run. You can also use
make test to
Building the openshift-jee-sample JEE application..
$ sti build git://github.com/bparees/openshift-jee-sample openshift/wildfly-8-centos wildflytest $ docker run -p 8080:8080 wildflytest
Accessing the application:
$ curl 127.0.0.1:8080
Released under the Apache License 2.0. See the LICENSE file.