Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjoyo committed Feb 2, 2024
1 parent b306928 commit 2e64f7f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions feel-engine-wrapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,18 @@
<quarkus.package.type>native</quarkus.package.type>
</properties>
</profile>
<profile>
<id>native-compress</id>
<activation>
<property>
<name>native-compress</name>
</property>
</activation>
<properties>
<skipITs>false</skipITs>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.compression.level>9</quarkus.native.compression.level>
</properties>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
@@ -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
quarkus.native.additional-build-args=--initialize-at-run-time=scala.util.Random,\-H:ReflectionConfigurationFiles=reflection-config.json

0 comments on commit 2e64f7f

Please sign in to comment.