Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Wildfly 8 - CentOS Docker image

This repository contains the sources and
Dockerfile
of the base image for deploying JEE applications as reproducible Docker
images. The resulting images can be run either by Docker
or inside OpenShift.

Installation

This image is available as trusted build in Docker Index:

index.docker.io/u/openshift/wildfly-8-centos

You can install it using:

$ docker pull openshift/wildfly-8-centos

Repository organization

  • .sti/bin/

    This folder contains scripts that are run by STI:

    • assemble

      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.

  • run

    This script is responsible for running the application, by using the
    Wildfly application server.

  • save-artifacts

    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.

  • wfbin/

    Contains script used to launch wildfly after performing environment variable
    substitution into the standalone.xml configuration file.

  • wfcfg/
    Contains the default standalone.xml configuration which can be overriden by applications
    that provide a standalone.xml in <application_src>/cfg.

  • wfmodules/
    Contains commonly used modules such as postgres and mysql database drivers.

Environment variables

  • 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.

Contributing

In order to test your changes to this STI image or to the STI scripts, you can
use the 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
automate this.

Usage

Building the openshift-jee-sample JEE application..

  1. using standalone STI and running the resulting image by Docker:
$ 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

Copyright

Released under the Apache License 2.0. See the LICENSE file.

Docker Pull Command
Owner
deshuai
Source Repository

Comments (0)