You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ab...@apache.org on 2023/04/13 22:26:44 UTC

[ranger] branch ranger-4186 created (now bc23a08f2)

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

abhi pushed a change to branch ranger-4186
in repository https://gitbox.apache.org/repos/asf/ranger.git


      at bc23a08f2 RANGER-4186: Setup docker builds as GitHub Actions

This branch includes the following new commits:

     new bc23a08f2 RANGER-4186: Setup docker builds as GitHub Actions

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[ranger] 01/01: RANGER-4186: Setup docker builds as GitHub Actions

Posted by ab...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a commit to branch ranger-4186
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit bc23a08f2777a90773c7f8b818f1755c78e18aed
Author: Abhishek Kumar <ab...@gmail.com>
AuthorDate: Thu Apr 13 15:26:37 2023 -0700

    RANGER-4186: Setup docker builds as GitHub Actions
---
 .github/workflows/maven.yml | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 8e21a946c..9d741ba85 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -44,4 +44,27 @@ jobs:
         distribution: 'temurin'
         cache: maven
     - name: Build with Maven
-      run: mvn clean install --no-transfer-progress -B -V 
+      run: mvn clean install --no-transfer-progress -B -V
+    - name: Transfer artifacts
+      run: cp target/ranger-* dev-support/ranger-docker/dist/ && cp target/version dev-support/ranger-docker/dist/
+  
+  docker-build:
+  
+    needs:
+     - build
+    runs-on: ubuntu-latest
+    
+    steps:
+    - name: Build Ranger Docker Image
+      run: |
+        cd dev-support/ranger-docker/
+        chmod +x download-archives.sh && ./download-archives.sh
+        export DOCKER_BUILDKIT=1
+        export COMPOSE_DOCKER_CLI_BUILD=1
+        export RANGER_DB_TYPE=postgres
+        docker build --no-cache -t ranger-base:latest -f Dockerfile.ranger-base .
+        docker build --no-cache -t ranger-db:latest -f Dockerfile.ranger-postgres .
+        docker build --no-cache -t ranger-solr:latest -f Dockerfile.ranger-solr .
+        docker build --no-cache -t ranger-zk:latest -f Dockerfile.ranger-zk .
+        docker build --build-arg RANGER_VERSION=3.0.0-SNAPSHOT --build-arg RANGER_DB_TYPE=${RANGER_DB_TYPE} -t ranger-admin:latest -f Dockerfile.ranger .
+