Skip to content

Commit

Permalink
Merge pull request #188 from jfdenise/patching
Browse files Browse the repository at this point in the history
[0.18.x] Fix for Issue #187, Add ability to execute a script once the maven repository has been unzipped.
  • Loading branch information
luck3y authored Jul 6, 2020
2 parents b19ea54 + e73bd03 commit 5d6d656
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ if [ -f "${ZIPPED_REPO}" ]; then
echo "Found zipped repository, installing it."
unzip ${ZIPPED_REPO} -d /tmp
repoDir=$(find /tmp -type d -iname "*-image-builder-maven-repository")

# hook to allow for maven-repo processing before to initiate feature-pack build
if [ -f "$GALLEON_MAVEN_REPO_HOOK_SCRIPT" ]; then
sh $GALLEON_MAVEN_REPO_HOOK_SCRIPT "$repoDir"
fi
mv $repoDir/maven-repository "$TMP_GALLEON_LOCAL_MAVEN_REPO"

if [ "x$deleteBuildArtifacts" == "xtrue" ]; then
Expand Down
4 changes: 3 additions & 1 deletion jboss/container/wildfly/s2i/bash/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ envs:
value: "/opt/jboss/container/wildfly/s2i/galleon/settings.xml"
- name: GALLEON_MAVEN_BUILD_IMG_SETTINGS_XML
value: /opt/jboss/container/wildfly/s2i/galleon/build-image-settings.xml
- name: GALLEON_MAVEN_REPO_HOOK_SCRIPT
description: "Optional, path to a bash script to execute once the maven repository has been unzipped. Script is called with path to maven repo as argument."
- name: GALLEON_S2I_FP_GROUP_ID
description: "Mandatory. groupid of s2i galleon feature-pack"
- name: GALLEON_S2I_FP_ARTIFACT_ID
description: "Mandatory. artifactid of s2i galleon feature-pack"
- name: GALLEON_VERSION
value: "4.2.4.Final"
- name: GALLEON_WILDFLY_VERSION
value: "4.2.4.Final"
value: "4.2.7.Final"
description: "Set to true to explicitly add org.wildfly:wildfly-datasources-galleon-pack to provisoned galleon feature-packs."
- name: GALLEON_S2I_PRODUCER_NAME
description: Mandatory. Name of the built feature-pack producer.
Expand Down

0 comments on commit 5d6d656

Please sign in to comment.