From ecd7d9e2c06295ac07349acce87f094e6b235a0d Mon Sep 17 00:00:00 2001 From: Nitya Tadepalli Date: Wed, 24 Jan 2024 15:15:26 -0500 Subject: [PATCH 1/2] libery sample --- kafka-java-liberty-sample/.dockerignore | 6 ------ kafka-java-liberty-sample/Dockerfile | 2 +- kafka-java-liberty-sample/kafka-java-liberty-sample.yaml | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 kafka-java-liberty-sample/.dockerignore diff --git a/kafka-java-liberty-sample/.dockerignore b/kafka-java-liberty-sample/.dockerignore deleted file mode 100644 index 5a23aef..0000000 --- a/kafka-java-liberty-sample/.dockerignore +++ /dev/null @@ -1,6 +0,0 @@ -**/* -.**/* -!build.gradle -!log4j/** -!resources/** -!src/** \ No newline at end of file diff --git a/kafka-java-liberty-sample/Dockerfile b/kafka-java-liberty-sample/Dockerfile index 76647ee..a65b784 100644 --- a/kafka-java-liberty-sample/Dockerfile +++ b/kafka-java-liberty-sample/Dockerfile @@ -1,4 +1,4 @@ -FROM gradle:jdk8-alpine as jdk +FROM gradle:jdk11-alpine as jdk COPY --chown=1000 . /usr/src/app WORKDIR /usr/src/app diff --git a/kafka-java-liberty-sample/kafka-java-liberty-sample.yaml b/kafka-java-liberty-sample/kafka-java-liberty-sample.yaml index 5c4832f..92eeb5c 100644 --- a/kafka-java-liberty-sample/kafka-java-liberty-sample.yaml +++ b/kafka-java-liberty-sample/kafka-java-liberty-sample.yaml @@ -5,7 +5,7 @@ metadata: namespace: default spec: containers: - - image: ibmcom/kafka-java-liberty-sample:latest + - image: event-streams-samples/kafka-java-liberty-sample:latest imagePullPolicy: IfNotPresent name: liberty-sample env: From b646869f75933f6c12548ebefaaea3b7b11aa5e7 Mon Sep 17 00:00:00 2001 From: Nitya Tadepalli Date: Wed, 24 Jan 2024 15:25:53 -0500 Subject: [PATCH 2/2] add liberty sample to workflow Update Dockerfile fix spaces --- .github/workflows/docker-image.yml | 6 ++++-- kafka-java-liberty-sample/Dockerfile | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e0326f5..ebcaae1 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -8,8 +8,8 @@ on: - 'kafka-java-console-schema-sample/**' - 'kafka-nodejs-console-sample/**' - 'kafka-python-console-sample/**' - - + - 'kafka-java-liberty-sample/**' + env: REGISTRY: ghcr.io @@ -30,6 +30,8 @@ jobs: image: kafka-nodejs-console-sample:latest - directory: kafka-python-console-sample image: kafka-python-console-sample:latest + - directory: kafka-java-liberty-sample + image: kafka-java-liberty-sample:latest permissions: contents: read diff --git a/kafka-java-liberty-sample/Dockerfile b/kafka-java-liberty-sample/Dockerfile index a65b784..2c896cd 100644 --- a/kafka-java-liberty-sample/Dockerfile +++ b/kafka-java-liberty-sample/Dockerfile @@ -1,3 +1,4 @@ +# test FROM gradle:jdk11-alpine as jdk COPY --chown=1000 . /usr/src/app