Skip to content

Commit

Permalink
fix6
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Jan 24, 2025
1 parent c80aab2 commit 4437312
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ webtop_version=$(cat ${PWD}/webtop5-build/VERSION)
tmce_jar="webtop-tmceplugins.jar"

# Download of external deps and CHECKSUM verification:
if ! compgen -G "pecbridge-*.tar.gz"; then
curl --netrc --fail -O "https://www.sonicle.com/nethesis/commercial/pecbridge/pecbridge-5.4.0.tar.gz"
fi
sha256sum -c CHECKSUM
# if ! compgen -G "pecbridge-*.tar.gz"; then
# curl --netrc --fail -O "https://www.sonicle.com/nethesis/commercial/pecbridge/pecbridge-5.4.0.tar.gz"
# fi
# sha256sum -c CHECKSUM

# Reuse existing webtopbuilder container, to speed up builds
if ! buildah containers --format "{{.ContainerName}}" | grep -q webtopbuilder; then
echo "Pulling maven runtime..."
buildah from --name webtopbuilder-tmp docker.io/library/maven:3.6-openjdk-8
buildah run webtopbuilder-tmp apt-get update
buildah run webtopbuilder-tmp apt-get install -y nodejs make
buildah commit --rm webtopbuilder-tmp webtopbuilder-image
buildah from --name webtopbuilder \
-v "${PWD}/webtop5-build:/webtop5-build:z" \
localhost/webtopbuilder-image
fi
# if ! buildah containers --format "{{.ContainerName}}" | grep -q webtopbuilder; then
# echo "Pulling maven runtime..."
# buildah from --name webtopbuilder-tmp docker.io/library/maven:3.6-openjdk-8
# buildah run webtopbuilder-tmp apt-get update
# buildah run webtopbuilder-tmp apt-get install -y nodejs make
# buildah commit --rm webtopbuilder-tmp webtopbuilder-image
# buildah from --name webtopbuilder \
# -v "${PWD}/webtop5-build:/webtop5-build:z" \
# localhost/webtopbuilder-image
# fi

# if [ ! -e ${PWD}/webtop5-build/webtop-webapp-$webtop_version.war ]; then
# buildah run webtopbuilder sh -c "mkdir -p ~/.m2"
Expand Down Expand Up @@ -72,8 +72,14 @@ cleanup_list+=("${tmce_plugin_tmp_dir}")
cd "${tmce_plugin_tmp_dir}"
curl -L -o tmce-plugin.zip "https://github.com/actions/download-artifact/releases/download/v4/tmce-plugin.zip"
ls "${PWD}/"
unzip tmce-plugin.zip
mv tmce-plugin/* "${PWD}/"
file tmce-plugin.zip
if unzip -tq tmce-plugin.zip; then
unzip tmce-plugin.zip
mv tmce-plugin/* "${PWD}/"
else
echo "Error: tmce-plugin.zip is not a valid zip file."
exit 1
fi
ls "${PWD}/"
)

Expand Down

0 comments on commit 4437312

Please sign in to comment.