Skip to content

Commit

Permalink
make DEPLOYMENTS_DIR overridable (fabric8io-images#146)
Browse files Browse the repository at this point in the history
and mkdir -p it, because it can	(and in	our use	case does) not exist, yet.
  • Loading branch information
vorburger authored and rhuss committed May 15, 2018
1 parent 81274a1 commit 48902da
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions java/images/jboss/s2i/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function build_maven() {

echo "=================================================================="
echo "Starting S2I Java Build ....."
mkdir -p ${DEPLOYMENTS_DIR}
if [ -f "${S2I_SOURCE_DIR}/pom.xml" ]; then
echo "S2I source build for Maven detected"
build_dir=$(get_output_dir)
Expand Down
2 changes: 1 addition & 1 deletion java/images/jboss/s2i/s2i-setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
S2I_DESTINATION=${S2I_DESTINATION:-/tmp}
S2I_SOURCE_DIR="${S2I_DESTINATION}/src"
S2I_ARTIFACTS_DIR="${S2I_DESTINATION}/artifacts"
DEPLOYMENTS_DIR="/deployments"
DEPLOYMENTS_DIR="${DEPLOYMENTS_DIR:-/deployments}"
RUN_JAVA_DIR=/opt/run-java
1 change: 1 addition & 0 deletions java/images/rhel/s2i/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function build_maven() {

echo "=================================================================="
echo "Starting S2I Java Build ....."
mkdir -p ${DEPLOYMENTS_DIR}
if [ -f "${S2I_SOURCE_DIR}/pom.xml" ]; then
echo "S2I source build for Maven detected"
build_dir=$(get_output_dir)
Expand Down
2 changes: 1 addition & 1 deletion java/images/rhel/s2i/s2i-setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
S2I_DESTINATION=${S2I_DESTINATION:-/tmp}
S2I_SOURCE_DIR="${S2I_DESTINATION}/src"
S2I_ARTIFACTS_DIR="${S2I_DESTINATION}/artifacts"
DEPLOYMENTS_DIR="/deployments"
DEPLOYMENTS_DIR="${DEPLOYMENTS_DIR:-/deployments}"
RUN_JAVA_DIR=/opt/run-java
1 change: 1 addition & 0 deletions java/templates/s2i/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function build_maven() {

echo "=================================================================="
echo "Starting S2I Java Build ....."
mkdir -p ${DEPLOYMENTS_DIR}
if [ -f "${S2I_SOURCE_DIR}/pom.xml" ]; then
echo "S2I source build for Maven detected"
build_dir=$(get_output_dir)
Expand Down
2 changes: 1 addition & 1 deletion java/templates/s2i/s2i-setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
S2I_DESTINATION=${S2I_DESTINATION:-/tmp}
S2I_SOURCE_DIR="${S2I_DESTINATION}/src"
S2I_ARTIFACTS_DIR="${S2I_DESTINATION}/artifacts"
DEPLOYMENTS_DIR="/deployments"
DEPLOYMENTS_DIR="${DEPLOYMENTS_DIR:-/deployments}"
RUN_JAVA_DIR=/opt/run-java

0 comments on commit 48902da

Please sign in to comment.