You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2021/11/14 18:00:01 UTC

[camel-karavan] branch main updated: Publish Standalone container (#90)

This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new f7f7bf3  Publish Standalone container (#90)
f7f7bf3 is described below

commit f7f7bf3867db68ba4f676ce78e36f5e790937762
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Sun Nov 14 12:57:57 2021 -0500

    Publish Standalone container (#90)
---
 .github/workflows/main.yml | 27 ++++++++++++++++++++++++++-
 README.md                  |  8 ++++----
 2 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 93223c6..241e15c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -14,6 +14,7 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v2
 
+      #  Building Karavan VSCode extensions
       - name: Set up Node
         uses: actions/setup-node@v2
         with:
@@ -39,4 +40,28 @@ jobs:
         uses: actions/upload-artifact@v2
         with:
           name: camel-karavan-vscode.vsix
-          path: ./karavan-vscode/*.vsix
\ No newline at end of file
+          path: ./karavan-vscode/*.vsix
+
+      #  Building Karavan standalone
+      - name: Set up JDK 11
+          uses: actions/setup-java@v1
+          with:
+            java-version: 11
+
+      - name: Cache local Maven repository
+        uses: actions/cache@v2
+        with:
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/camel/karavan
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-maven-
+
+      - name: Build application
+        run: |
+          mvn package -f karavan-app -DskipTest \
+          -Dquarkus.container-image.build=true \
+          -Dquarkus.container-image.push=true \
+          -Dquarkus.container-image.image=ghcr.io/${GITHUB_REPOSITORY}:latest \
+          -Dquarkus.container-image.username=${{ github.actor }} \
+          -Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/README.md b/README.md
index b7f30af..54766e5 100644
--- a/README.md
+++ b/README.md
@@ -61,20 +61,20 @@ npm start
 ## Running in local mode
 - Run JVM Mode
 ```shell script
-docker run -it -p 8080:8080 -e KARAVAN_MODE=local -v $(pwd):/deployments/integrations  entropy1/karavan
+docker run -it -p 8080:8080 -e KARAVAN_MODE=local -v $(pwd):/deployments/integrations ghcr.io/apache/camel-karavan:latest
 ```
 For SELinux
 ```shell script
-docker run -it -p 8080:8080 -e KARAVAN_MODE=local -v $(pwd):/deployments/integrations:z  entropy1/karavan
+docker run -it -p 8080:8080 -e KARAVAN_MODE=local -v $(pwd):/deployments/integrations:z ghcr.io/apache/camel-karavan:latest
 ```
 
 - Run native
 ```shell script
-docker run -it -p 8080:8080 -e KARAVAN_MODE=local -v $(pwd):/deployments/integrations  entropy1/karavan-native
+docker run -it -p 8080:8080 -e KARAVAN_MODE=local -v $(pwd):/deployments/integrations ghcr.io/apache/camel-karavan:latest
 ```
 For SELinux
 ```shell script
-docker run -it -p 8080:8080 -e KARAVAN_MODE=local -v $(pwd):/deployments/integrations:z  entropy1/karavan-native
+docker run -it -p 8080:8080 -e KARAVAN_MODE=local -v $(pwd):/deployments/integrations:z ghcr.io/apache/camel-karavan:latest
 ```
 
 ## Running in cloud mode