Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s2i-liberty #4

Merged
merged 42 commits into from
Oct 14, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1d45bab
s2i-liberty initial commit
raffaelespazzoli Sep 27, 2016
3cef661
fixed repo
raffaelespazzoli Sep 27, 2016
04fa257
added readme
raffaelespazzoli Sep 28, 2016
dfc8d5a
deleted test directory
raffaelespazzoli Sep 28, 2016
ea42cbc
fixed missing bashang in run command
raffaelespazzoli Sep 28, 2016
97d40b5
Update readme.md
raffaelespazzoli Sep 30, 2016
12666fa
Update readme.md
raffaelespazzoli Sep 30, 2016
23bf58a
added two build approach
raffaelespazzoli Oct 6, 2016
6da266e
added ability to debug liberty
raffaelespazzoli Oct 6, 2016
923ac20
added echo statements to build
raffaelespazzoli Oct 6, 2016
5f74db7
debug port
raffaelespazzoli Oct 6, 2016
64325ec
a
raffaelespazzoli Oct 6, 2016
cb019e4
d
raffaelespazzoli Oct 6, 2016
e2bc269
d
raffaelespazzoli Oct 6, 2016
b073470
d
raffaelespazzoli Oct 6, 2016
c5e6088
jolokia
raffaelespazzoli Oct 7, 2016
17015a7
improved jolokia
raffaelespazzoli Oct 7, 2016
5811643
run debug
raffaelespazzoli Oct 7, 2016
1ea2747
debug run
raffaelespazzoli Oct 7, 2016
7970be5
run debug
raffaelespazzoli Oct 7, 2016
86ad4bf
debug run
raffaelespazzoli Oct 7, 2016
3060150
debug jolokia
raffaelespazzoli Oct 7, 2016
5deb6e3
jolokia debug
raffaelespazzoli Oct 7, 2016
fbf5906
jolokia debug
raffaelespazzoli Oct 7, 2016
2ae50b8
Merge branch 'master' of
raffaelespazzoli Oct 7, 2016
d5560c3
jolokia debug
raffaelespazzoli Oct 7, 2016
a416fb4
jolokia debug
raffaelespazzoli Oct 7, 2016
8d34e3f
jolokia debug
raffaelespazzoli Oct 7, 2016
24e192c
jolokia debug
raffaelespazzoli Oct 7, 2016
2ec145d
jolokia debug
raffaelespazzoli Oct 7, 2016
57f9d58
no jolokia
raffaelespazzoli Oct 8, 2016
13c05c5
improved cohexistance of chained builds and extended build
raffaelespazzoli Oct 8, 2016
e7500dd
debug
raffaelespazzoli Oct 8, 2016
fd7e11d
debug
raffaelespazzoli Oct 8, 2016
67a4a38
fixed readme
raffaelespazzoli Oct 8, 2016
a4cf45d
readme fixes
raffaelespazzoli Oct 8, 2016
ed21fdb
d
raffaelespazzoli Oct 8, 2016
7dacd1e
last fix
raffaelespazzoli Oct 8, 2016
2a0cb63
correction for allowing a random user in root group to run the image
raffaelespazzoli Oct 10, 2016
909ec16
added application verification
raffaelespazzoli Oct 11, 2016
e29a787
fixed the md
raffaelespazzoli Oct 11, 2016
11863f1
fix
raffaelespazzoli Oct 11, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improved jolokia
  • Loading branch information
raffaelespazzoli committed Oct 7, 2016
commit 17015a74bdd30825fb1bc26faa00899728cb03a7
8 changes: 6 additions & 2 deletions s2i-liberty/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ LABEL io.openshift.s2i.scripts-url=image:///usr/local/s2i \
io.k8s.description="Platform for building and running JEE applications on IBM WebSphere Liberty Profile" \
io.k8s.display-name="Liberty 16.0.0_03" \
io.openshift.expose-services="9080/http:http, 9443/https:https" \
io.openshift.tags="runner,liberty"
io.openshift.tags="runner,liberty" \
io.openshift.s2i.destination="/tmp"

ENV STI_SCRIPTS_PATH="/usr/local/s2i" \
WORKDIR="/usr/local/workdir" \
WLP_DEBUG_ADDRESS="7777" \
JOLOKIA_PORT="8778"
JOLOKIA_PORT="8778" \
WLP_ENABLE_DEBUG="false" \
ENABLE_JOLOKIA="true" \
S2I_DESTINATION="/tmp"

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
Expand Down
12 changes: 6 additions & 6 deletions s2i-liberty/s2i/bin/assemble-runtime
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ cp $WORKDIR/artifacts/* /config/dropins/
echo copy anything in $WORKDIR/config to config
cp $WORKDIR/config/* /config

if [ -d "/tmp/src/artifacts" ]; then
#echo copy anything in tmp/src/artifacts to dropins
cp /tmp/src/artifacts/* /config/dropins/
if [ -d "$S2I_DESTINATION/src/artifacts" ]; then
#echo copy anything in $S2I_DESTINATION/src/artifacts to dropins
cp $S2I_DESTINATION/src/artifacts/* /config/dropins/
fi

if [ -d "/tmp/src/config" ]; then
#echo copy anything in tmp/src/artifacts to dropins
cp /tmp/src/config/* /config
if [ -d "$S2I_DESTINATION/src/config" ]; then
#echo copy anything in $S2I_DESTINATION/src/artifacts to dropins
cp $S2I_DESTINATION/src/config/* /config
fi

exit $rc
8 changes: 6 additions & 2 deletions s2i-liberty/s2i/bin/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash

#comment this line to disable debug
echo $'\n'JAVA_DEBUG="-Dwas.debug.mode=true -Dcom.ibm.websphere.ras.inject.at.transform=true -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${WLP_DEBUG_ADDRESS}"$'\n' >> /opt/ibm/wlp/usr/servers/defaultServer/server.env
echo "-javaagent:$WORKDIR/jolokia.jar=port=$JOLOKIA_PORT,protocol=https,caCert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt,clientPrincipal=cn=system:master-proxy,useSslClientAuthentication=true,extraClientCheck=true,host=0.0.0.0,discoveryEnabled=false"$'\n' >> /opt/ibm/wlp/usr/servers/defaultServer/server.env
if ["$ENABLE_DEBUG" -eq "true"]; then
echo $'\n'JAVA_DEBUG="-Dwas.debug.mode=true -Dcom.ibm.websphere.ras.inject.at.transform=true -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${WLP_DEBUG_ADDRESS}"$'\n' >> /opt/ibm/wlp/usr/servers/defaultServer/server.env;
fi
if ["ENABLE_JOLOKIA" -eq "true"]; then
echo "-javaagent:$WORKDIR/jolokia.jar=port=$JOLOKIA_PORT,protocol=https,caCert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt,clientPrincipal=cn=system:master-proxy,useSslClientAuthentication=true,extraClientCheck=true,host=0.0.0.0,discoveryEnabled=false"$'\n' >> /opt/ibm/wlp/usr/servers/defaultServer/jvm.options;
fi
/opt/ibm/wlp/bin/server run defaultServer