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 2bf7b60 commit 426d4b9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: 'poetry'
-
name: Set up poetry
uses: abatilo/actions-poetry@v2
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
with:
java-version: '21'
distribution: 'graalvm'
cache: 'maven'
-
name: Prepare Maven Wrapper
run: chmod +x ./mvnw
Expand All @@ -43,7 +44,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: feel-engine-wrapper-${{ matrix.arch }}-runner
path: feel-engine-wrapper/target/*-runner # action does not respect working-directory...
path: feel-engine-wrapper/target/feel-engine-wrapper-runner # action does not respect working-directory...
if-no-files-found: error

build-python:
Expand All @@ -60,7 +61,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
cache: 'poetry'
-
name: Set up poetry
uses: abatilo/actions-poetry@v2
Expand Down Expand Up @@ -187,6 +188,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: 'poetry'
-
name: Set up poetry
uses: abatilo/actions-poetry@v2
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ ARG PYTHON_VERSION="3.12"
FROM quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-21 AS build-java
ARG TARGETARCH

COPY --chown=quarkus:quarkus feel-engine-wrapper/mvnw /code/mvnw
COPY --chown=quarkus:quarkus feel-engine-wrapper/.mvn /code/.mvn
COPY --chown=quarkus:quarkus feel-engine-wrapper/pom.xml /code/
COPY --chown=quarkus:quarkus feel-engine-wrapper/mvnw /app/mvnw
COPY --chown=quarkus:quarkus feel-engine-wrapper/.mvn /app/.mvn
COPY --chown=quarkus:quarkus feel-engine-wrapper/pom.xml /app/
COPY --chown=quarkus:quarkus docker/upx_${TARGETARCH} /usr/bin/upx

USER quarkus
WORKDIR /code
WORKDIR /app
RUN ./mvnw -B org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline
COPY feel-engine-wrapper/src /code/src
COPY feel-engine-wrapper/src /app/src
RUN ./mvnw package -Dnative-compress

###############################################################################
Expand Down Expand Up @@ -52,7 +52,7 @@ ARG PYTHON_VERSION
ENV PYTHONUNBUFFERED=1

WORKDIR /app
COPY --from=build-java /code/target/*-runner feel-wrapper
COPY --from=build-java /app/target/feel-engine-wrapper-runner feel-wrapper
COPY ./bpm-ai-connectors-c8/bpm_ai_connectors_c8/ ./bpm_ai_connectors_c8/
COPY --from=build-python /app/.venv/lib/python${PYTHON_VERSION}/site-packages /home/nonroot/.local/lib/python${PYTHON_VERSION}/site-packages

Expand Down
3 changes: 3 additions & 0 deletions feel-engine-wrapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
<goal>generate-code</goal>
<goal>generate-code-tests</goal>
</goals>
<configuration>
<finalName>feel-engine-wrapper</finalName>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit 426d4b9

Please sign in to comment.