Public Repository

Last pushed: a year ago
Short Description
Oracle Java / Jetty 9.3.9 / HAProxy 1.5.18 / Fedora 23
Full Description

Jetty 9.3.9 / HAProxy 1.5.18 / Fedora 23


Latest (29JUN2016): Fixes proxy and tries to create a startup script for jetty.
OS: Fedora 23
JAVA Version: Oracle JRE 1.9
JAVA APP Server: Jetty 9
HAProxy: 1.5.18

Java Version Info

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

Wicked Simple "Get Started"

Simply pull down this image, add a "ROOT.WAR" to /usr/local/jetty/webapps/ and kick off /etc/init.d/jetty start. The steps could be as simple as.

[root@host ~]# docker pull scoday/jetty-haproxy:latest

[root@host ~]# docker run -d -i -p 80:80 scoday/jetty-haproxy

[root@host ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2ac0da3ecaf7 scoday/jetty-haproxy "/bin/bash -l" 3 seconds ago Up 2 seconds 5000/tcp, 0.0.0.0:80->80/tcp, 8080/tcp randy

[root@host ~]# docker cp ROOT.WAR 2ac0da3ecaf7:/usr/local/jetty/webapps/

[root@host ~]# docker exec 2ac0da3ecaf7 ls -lah /usr/local/jetty/webapps
total 8.0K
drwxrwxr-x 2 1000 1000 38 Jun 29 02:16 .
drwxrwxr-x 10 1000 1000 4.0K Jun 2 03:03 ..
-rw-rw-r-- 1 1000 1000 1.4K May 17 23:14 README.TXT
-rw-r--r-- 1 root root 0 Jun 29 02:08 ROOT.WAR

[root@host ~]# docker exec -d 2ac0da3ecaf7 /etc/init.d/jetty start
[root@host ~]# docker exec -d 2ac0da3ecaf7 haproxy -f /etc/haproxy/haproxy.cfg
[root@host ~]# docker exec 2ac0da3ecaf7 ps awwwx
PID TTY STAT TIME COMMAND
1 ? Ss 0:00 /bin/bash -l
55 ? Sl 0:02 /usr/bin/java -Djetty.logging.dir=/usr/local/jetty/logs -Djetty.home=/usr/local/jetty -Djetty.base=/usr/local/jetty -Djava.io.tmpdir=/tmp -jar /usr/local/jetty/start.jar jetty.state=/usr/local/jetty/jetty.state jetty-logging.xml jetty-started.xml
65 ? Ss 0:02 haproxy -f /etc/haproxy/haproxy.cfg
83 ? Rs 0:00 ps awwwx

Don't Forget!

[root@host ~]# docker commit 2ac0da3ecaf7 $somename:$someversion

Always commit your creations otherwise they are lost and gone forever.

Docker Pull Command
Owner
scoday