Skip to content

Commit

Permalink
use base jdk8 image
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Jul 22, 2022
1 parent 9051670 commit 9d568c9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/docker-ingestion-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,29 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: acryldata/datahub-ingestion-base:latest
push: true

build-base-jdk:
name: Build and Push Docker Image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.ACRYL_DOCKER_USERNAME }}
password: ${{ secrets.ACRYL_DOCKER_PASSWORD }}
- name: Build and Push image
uses: docker/build-push-action@v2
with:
context: ./docker/datahub-ingestion
file: ./docker/datahub-ingestion/base-jdk8.Dockerfile
platforms: linux/amd64,linux/arm64
tags: acryldata/datahub-ingestion-base:latest-jdk8
push: true
2 changes: 1 addition & 1 deletion docker/datahub-ingestion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM acryldata/datahub-ingestion-base as base
# && curl -L https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | tar -C /usr/local/bin -xzv


FROM openjdk:8 as prod-build
FROM anshbansal/datahub-ingestion-base:latest-jdk8 as prod-build
COPY . /datahub-src
RUN cd /datahub-src && ./gradlew :metadata-events:mxe-schemas:build -Djavax.net.debug=ssl,handshake -d

Expand Down
6 changes: 6 additions & 0 deletions docker/datahub-ingestion/base-jdk8.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM openjdk:8

COPY gradle /tmp-gradle/gradle
COPY gradle* /tmp-gradle

RUN /tmp-gradle/gradlew --version && rm -rf /tmp-gradle

0 comments on commit 9d568c9

Please sign in to comment.