Skip to content

Commit

Permalink
Adding Quarkus buildpack
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Aug 30, 2024
1 parent 6e57ecb commit f7c4614
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion scripts/install_buildpack_testing_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ repos=(
https://github.com/paketo-community/builder-ubi-buildpackless-base.git
https://github.com/paketo-community/ubi-base-stack.git
https://github.com/paketo-buildpacks/java.git
https://github.com/paketo-buildpacks/quarkus.git
)

for repo in "${repos[@]}"
Expand Down Expand Up @@ -225,7 +226,6 @@ OS="linux"

COMPILED_BUILDPACK="${HOME}/buildpack"

mkdir "${SOURCE_PATH}"/buildpack
create-package \
--source "${SOURCE_PATH}" \
--destination "${COMPILED_BUILDPACK}" \
Expand All @@ -247,6 +247,37 @@ print::colored_msg "${CYAN}" "Show buildpack.toml content for java buildpack"
cat package.toml

export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock

pack -v buildpack package \
"${PACKAGE}:${VERSION}" \
--config "${COMPILED_BUILDPACK}/package.toml" # --publish
cd ..

print::colored_msg "${CYAN}" "Test case:: Build the Quarkus Buildpack image."
cd quarkus

# TODO: Grab the version from git tag/ref/etc and pass OS as env var
VERSION="v0.1.0"
OS="linux"

COMPILED_BUILDPACK="${HOME}/buildpack"

create-package \
--source "${SOURCE_PATH}" \
--destination "${COMPILED_BUILDPACK}" \
--version "${VERSION}"

cd "${COMPILED_BUILDPACK}"

print::colored_msg "${CYAN}" "Show buildpack.toml content for Quarkus buildpack"
cat buildpack.toml

export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock

pack -v buildpack package \
"${PACKAGE}:${VERSION}" \
--config "${COMPILED_BUILDPACK}/package.toml" # --publish
cd ..



0 comments on commit f7c4614

Please sign in to comment.