Skip to content

Dockerfile to deploy Wildfly in Alpine Linux

Notifications You must be signed in to change notification settings

wjampa/alpine-wildfly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Alpine Wildfly

Docker image for run Wildfly inside Alpine Linux, a lightweight Linux Distribution.

This image was built for a Proof of Concept, it is constantly updated, so don't use it in a production environment.

Usage

To run image with default parameters, just:

docker run -t -d tozores\alpine-wildfly

If you want access the console or deployed applications from your machine, you must configure the port forwarding, for example:

docker run -t -d -p 8080:8080 -p 9990:9990 tozores\alpine-wildfly

By default, this docker image runs in standalone mode using default profile, but you can change this, overriding some environment variables.

In Docker, we use -e parameter to do this (override env variables), for example:

docker run -t -d -e "WILDFLY_HOME=/opt/wildfly" -p 8080:8080 -p 9990:9990 tozores\alpine-wildfly

See below the list of variables, available to change their values.

Environment variables

Variable Description Default
WILDFLY_VERSION Define the version to be downloaded. This information is used also to define some temporary paths inside the container 10.0.0.Final
JDK_VERSION Define the OpenJDK version to be used. For now the OpenJDK is the only choice and the Alpine Linux only provides the versions 7 and 8 8
WILDFLY_HOME Define the Wildfly installation directory /opt/wildfly
DOWNLOAD_LOCATION Define the location to download the Wildfly package, can be a URL or a path in the Docker host http://download.jboss.org/wildfly/$WILDFLY_VERSION/wildfly-$WILDFLY_VERSION.tar.gz
WILDFLY_MODE Define the mode that Wildfly will run. For now only standalone mode is available.
Options:
standalone: Default/WEB profile, only Java EE Web specifications available, without clustering support

standalone-ha: Default profile with clustering support.

standalone-full: Full profile, Full Java EE specifications available, without clustering support

standalone-full-ha: Full profile with clustering support
standalone
ADMIN_USER Define the administrator user for the console admin
ADMIN_PASS Define the administrator password for the console wildfly

About

Dockerfile to deploy Wildfly in Alpine Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published