-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build viable Docker images for Polaris using Quarkus
- Loading branch information
Showing
20 changed files
with
742 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
|
@@ -83,25 +89,34 @@ jobs: | |
if: steps.list-changed.outputs.changed == 'true' | ||
uses: medyagh/[email protected] | ||
|
||
- name: Docker build | ||
- name: Print Docker info | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
docker -v | ||
minikube docker-env | ||
- name: Image build | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
eval $(minikube docker-env) | ||
docker build -f ./Dockerfile \ | ||
--build-arg ECLIPSELINK=true \ | ||
--build-arg ECLIPSELINK_DEPS=com.h2database:h2:2.3.232 \ | ||
-t polaris:latest . | ||
export BUILD_TAG=helm-ci-$(date +%s) | ||
echo BUILD_TAG=${BUILD_TAG} >> ${GITHUB_ENV} | ||
eval $(minikube -p minikube docker-env) | ||
./gradlew :polaris-quarkus-server:assemble \ | ||
-Dquarkus.container-image.build=true \ | ||
-Dquarkus.container-image.name=polaris-testing \ | ||
-Dquarkus.container-image.tag=${BUILD_TAG} | ||
minikube image ls | ||
- name: Install fixtures | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
kubectl create namespace polaris-ns | ||
kubectl apply --namespace polaris-ns $(find helm/polaris/ci/fixtures -name "*.yaml" -exec echo -n "-f {} " \;) | ||
kubectl apply --namespace polaris-ns -f helm/polaris/ci/fixtures | ||
- name: Run chart-testing (install) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
ct install --target-branch ${{ github.event.repository.default_branch }} \ | ||
--namespace polaris-ns \ | ||
--helm-extra-set-args "--set=image.repository=polaris --set=image.tag=latest" \ | ||
--helm-extra-set-args "--set=image.repository=apache/polaris-testing --set=image.tag=${BUILD_TAG}" \ | ||
--debug --charts ./helm/polaris |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.