Skip to content

Commit

Permalink
Update Dockerfile builder source (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
EAfterburner authored Mar 28, 2023
1 parent 4afbd09 commit 41633c8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 8 additions & 1 deletion kafka-connect/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# This dockerfile expects Connector jars to have been built under a `connectors` directory
#
FROM ibmcom/eventstreams-kafka-ce-icp-linux-amd64:2019.2.1-3a2f93e as builder
FROM alpine as builder

RUN apk update
RUN apk --no-cache add curl

RUN curl -L "https://downloads.apache.org/kafka/3.4.0/kafka_2.12-3.4.0.tgz" -o kafka.tgz
RUN mkdir /opt/kafka \
&& tar -xf kafka.tgz -C /opt/kafka --strip-components=1

FROM ibmjava:11

Expand Down
11 changes: 9 additions & 2 deletions kafka-mirrormaker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
FROM ibmcom/eventstreams-kafka-ce-icp-linux-amd64:2019.2.1-3a2f93e as builder
FROM alpine as builder

FROM ibmjava:8-jre
RUN apk update
RUN apk --no-cache add curl

RUN curl -L "https://downloads.apache.org/kafka/3.4.0/kafka_2.12-3.4.0.tgz" -o kafka.tgz
RUN mkdir /opt/kafka \
&& tar -xf kafka.tgz -C /opt/kafka --strip-components=1

FROM ibmjava:11

RUN addgroup --gid 5000 --system esgroup && \
adduser --uid 5000 --ingroup esgroup --system esuser
Expand Down

0 comments on commit 41633c8

Please sign in to comment.