-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from boozallen/51-replace-kafka-image
#51 update kafka base image to bitnami
- Loading branch information
Showing
14 changed files
with
48 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 10 additions & 18 deletions
28
extensions/extensions-docker/aissemble-kafka/src/main/resources/docker/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,25 @@ | ||
#Script for creating base Kafka Docker image | ||
FROM wurstmeister/kafka:2.13-2.7.2 | ||
FROM bitnami/kafka:3.5 | ||
|
||
LABEL org.opencontainers.image.source = "https://github.com/boozallen/aissemble" | ||
|
||
USER root | ||
RUN apt-get update -y \ | ||
&& apt-get install unzip \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get clean | ||
|
||
RUN adduser --system --shell /bin/bash --no-create-home --uid 1001 --ingroup root --disabled-login kafka && \ | ||
chown -R kafka:root /opt/kafka && \ | ||
chown -hLR kafka:root /opt/kafka_2.13-2.7.2 && \ | ||
chown -R kafka:root /usr/bin/*.sh | ||
|
||
RUN addgroup --gid 1001 kafka && adduser --system --uid 1001 --gid 1001 kafka | ||
RUN mkdir /opt/connectors && \ | ||
chown -R kafka:root /opt/connectors | ||
chown -R kafka:kafka /opt/connectors && \ | ||
chown -R kafka:kafka /opt/bitnami/kafka | ||
|
||
USER kafka | ||
# Install kafka-connect-spooldir plugin that can be used with Kafka Connect to read CSV data into topics | ||
RUN wget https://d1i4a15mxbxib1.cloudfront.net/api/plugins/jcustenborder/kafka-connect-spooldir/versions/2.0.62/jcustenborder-kafka-connect-spooldir-2.0.62.zip \ | ||
-P /opt/connectors | ||
RUN unzip /opt/connectors/jcustenborder-kafka-connect-spooldir-2.0.62.zip -d /opt/connectors | ||
RUN curl -slLO https://d1i4a15mxbxib1.cloudfront.net/api/plugins/jcustenborder/kafka-connect-spooldir/versions/2.0.62/jcustenborder-kafka-connect-spooldir-2.0.62.zip \ | ||
--output-dir /opt/connectors && \ | ||
unzip /opt/connectors/jcustenborder-kafka-connect-spooldir-2.0.62.zip -d /opt/connectors && \ | ||
rm /opt/connectors/jcustenborder-kafka-connect-spooldir-2.0.62.zip | ||
|
||
# Copy over configs | ||
COPY ./src/main/resources/config/ /opt/kafka/config/ | ||
|
||
# Base image creates a volume mount point at /kafka so any changes to that directory do not persist. | ||
# Because volumes can only be mounted as root, we can't use that directory for our logs and run the container | ||
# as a non-root user. In scenarios where persistence is important, this log should be configured to write | ||
# to an external source or a persistent volume. | ||
ENV KAFKA_LOG_DIRS=/opt/kafka/logs | ||
USER kafka | ||
COPY ./src/main/resources/config/ /opt/bitnami/kafka/config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters