Skip to content

Commit

Permalink
Merge pull request #44 from SAP/batchMode
Browse files Browse the repository at this point in the history
Run maven in batch mode
  • Loading branch information
o-liver committed Nov 6, 2023
2 parents c83d2d5 + e4cc703 commit fb28541
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on: push
name: Build image
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: |
docker build .
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LABEL org.opencontainers.image.description="An image for the SAP neo cli"
LABEL org.opencontainers.image.licenses=Apache-2.0

RUN apk add --no-cache bash && \
mvn com.sap.cloud:neo-javaee7-wp-maven-plugin:1.154.5.2:install-sdk -DsdkInstallPath=sdk -Dincludes=tools/**,license/**,sdk.version && \
mvn --batch-mode com.sap.cloud:neo-javaee7-wp-maven-plugin:1.154.5.2:install-sdk -DsdkInstallPath=sdk -Dincludes=tools/**,license/**,sdk.version && \
chmod -R 777 sdk && \
ln -s /sdk/tools/neo.sh /usr/bin/neo.sh && \
rm -rf /var/lib/apt/lists/*

0 comments on commit fb28541

Please sign in to comment.