From 2e64f7f762409a709f52d5b3a4bd70c1dfb2395a Mon Sep 17 00:00:00 2001 From: Benjoyo Date: Fri, 2 Feb 2024 10:41:29 +0100 Subject: [PATCH] wip --- .github/workflows/release.yml | 7 ++++--- Dockerfile | 2 +- feel-engine-wrapper/pom.xml | 13 +++++++++++++ .../src/main/resources/application.properties | 3 +-- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53abe7b..53b9935 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,13 +65,13 @@ jobs: run: poetry install --only main - name: Build - run: poetry build + run: poetry install - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: bpm-ai-connectors-c8 - path: dist/ + path: bpm-ai-connectors-c8/dist/ # action does not respect working-directory... if-no-files-found: error build-push-amd64: @@ -122,8 +122,9 @@ jobs: name: Setup docker (missing on MacOS) if: runner.os == 'macos' run: | + brew config brew install docker colima - colima start + colima start debug --arch aarch64 # For testcontainers to find the Colima socket # https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock diff --git a/Dockerfile b/Dockerfile index bb140cb..ca1c065 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ USER quarkus WORKDIR /code RUN ./mvnw -B org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline COPY feel-engine-wrapper/src /code/src -RUN ./mvnw package -Dnative +RUN ./mvnw package -Dnative-compress ############################################################################### # 2. build python connectors as native executable using nuitka diff --git a/feel-engine-wrapper/pom.xml b/feel-engine-wrapper/pom.xml index d927034..5ccbfc1 100644 --- a/feel-engine-wrapper/pom.xml +++ b/feel-engine-wrapper/pom.xml @@ -182,5 +182,18 @@ native + + native-compress + + + native-compress + + + + false + native + 9 + + diff --git a/feel-engine-wrapper/src/main/resources/application.properties b/feel-engine-wrapper/src/main/resources/application.properties index bd139c5..d88e0a5 100644 --- a/feel-engine-wrapper/src/main/resources/application.properties +++ b/feel-engine-wrapper/src/main/resources/application.properties @@ -1,5 +1,4 @@ quarkus.http.host=localhost quarkus.http.port=8080 -quarkus.native.additional-build-args=--initialize-at-run-time=scala.util.Random,\-H:ReflectionConfigurationFiles=reflection-config.json -quarkus.native.compression.level=9 \ No newline at end of file +quarkus.native.additional-build-args=--initialize-at-run-time=scala.util.Random,\-H:ReflectionConfigurationFiles=reflection-config.json \ No newline at end of file