Searching for a docker container for running JBoss WilFly application server, I could not find any existing one that has the Java 8. So had to create one . To import it run: docker pull sillenttroll/wildfly-java-8 In order to run it simply execute this: docker run -d -it -p 9990:9990 -p 8080:8080 sillenttroll/wildfly-java-8 However, in order to be able to manage the instance and to deploy your application, you will have to add a management user. This is done with the WilfFly add-user utility . In order to be able to access and run the utility you will have to extend the image. Create a Dockerfile with the following content: FROM sillenttroll/wildfly-java-8 RUN /opt/wildfly/bin/add-user.sh user password --silent Then build the image docker build -t "your_tag" . Run the new image and start using this amazing application server with latest Java version. Source code is available here . And here you can find the container info on Docker Hub.
Popular posts from this blog
HAProxy is great! It is a simple tool that allows to balance the load across multiple servers and it's pretty easy to setup and configure. But I have encountered a little bit challenging to handle the upgrade of one of the server node. You see, in the most common configuration, HAProxy is set to just checks for a port on the server, for example the WildlFly port 8080, so, in order to stop receiving requests from clients, you either stop the application server or disable it on HAProxy. Neither of those methods worked for the application I was working on for various reasons that are out of scope of this post. The solution I have found is pretty simple and it is based on a URL on the application server itself, that HAPRoxy is using to check if the node is available. For example: http://localhost:8080/console/health Here is an example of HAProxy configuration, that is using this URL for health checking: global daemon maxconn 4096 user haproxy group haproxy defau