This repository has been archived by the owner on Aug 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create jetty9 image, fix entrypoint for java7
The idea is that both will have a known-entrypoint of /run App code (jars or wars) will go into /app
- Loading branch information
Showing
11 changed files
with
116 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.build/ | ||
image.aci.asc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,7 @@ libxtst6 | |
openjdk-7-jre | ||
openjdk-7-jre-headless | ||
tzdata-java | ||
zlib1g | ||
zlib1g | ||
bash | ||
libncurses5 | ||
libtinfo5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/bash -e | ||
|
||
ROOTFS=${1} | ||
cd ${ROOTFS} | ||
SRCDIR=${2} | ||
|
||
# symlink java | ||
cd ${ROOTFS} | ||
ln -s usr/lib/jvm/java-7-openjdk-amd64/bin/java java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
MAIN_CLASS=$1 | ||
WORKDIR=/app | ||
MAIN_JAR=/app/app.jar | ||
|
||
JAVA_ARGS="" | ||
CP="" | ||
if [[ -n "${MAIN_CLASS}" ]]; then | ||
shift | ||
CP=${MAIN_JAR} | ||
CP=${CP}:"/app/lib/*" | ||
JAVA_ARGS="${JAVA_ARGS} ${MAIN_CLASS}" | ||
else | ||
CP="/app/lib/*" | ||
JAVA_ARGS="${JAVA_ARGS} -jar ${MAIN_JAR}" | ||
fi | ||
|
||
cd ${WORKDIR} | ||
/java -cp "${CP}" ${JAVA_ARGS} $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.build/ | ||
image.aci | ||
downloads/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"acVersion": "0.5.1", | ||
"acKind": "ImageManifest", | ||
"name": "aci.justinsb.com/jetty9", | ||
"labels": [ | ||
{ | ||
"name": "version", | ||
"value": "9.2.10.0" | ||
}, | ||
{ | ||
"name": "arch", | ||
"value": "amd64" | ||
}, | ||
{ | ||
"name": "os", | ||
"value": "linux" | ||
} | ||
], | ||
"app": { | ||
"exec": [ "/run" ], | ||
"user": "0", | ||
"group": "0" | ||
}, | ||
"dependencies": [ | ||
{"app":"aci.justinsb.com/java7"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
libselinux1 | ||
libffi6 | ||
libpcre3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash -e | ||
|
||
ROOTFS=${1} | ||
SRCDIR=${2} | ||
|
||
mkdir -p ${SRCDIR}/downloads | ||
pushd ${SRCDIR}/downloads | ||
wget -N "http://download.eclipse.org/jetty/stable-9/dist/jetty-distribution-9.2.10.v20150310.tar.gz" | ||
popd | ||
|
||
cd ${ROOTFS} | ||
mkdir -p jetty | ||
tar -x -z --strip-components=1 -C jetty -f ${SRCDIR}/downloads/jetty-distribution-9.2.10.v20150310.tar.gz | ||
|
||
pushd jetty/webapps | ||
ln -s ../../app/root.war | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/dash | ||
|
||
cd /jetty | ||
/java -jar start.jar |