Skip to content

Instantly share code, notes, and snippets.

@etolbakov
Created May 9, 2021 15:05
Show Gist options
  • Save etolbakov/92c77f0c4cd4602afc7ce3800d5e1c65 to your computer and use it in GitHub Desktop.
Save etolbakov/92c77f0c4cd4602afc7ce3800d5e1c65 to your computer and use it in GitHub Desktop.
Schema-registry Arm64 image
FROM kymeric/cp-base
ARG COMMIT_ID=unknown
LABEL io.confluent.docker.git.id=$COMMIT_ID
ARG BUILD_NUMBER=-1
LABEL io.confluent.docker.build.number=$BUILD_NUMBER
MAINTAINER partner-support@confluent.io
LABEL io.confluent.docker=true
ENV COMPONENT=schema-registry
# Default listener
EXPOSE 8081
RUN echo "===> installing ${COMPONENT}..." \
&& wget -qO - http://packages.confluent.io/deb/5.3/archive.key | apt-key add - \
&& echo "deb [arch=amd64] http://packages.confluent.io/deb/5.3 stable main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y \
confluent-${COMPONENT}=${CONFLUENT_VERSION}${CONFLUENT_PLATFORM_LABEL}-${CONFLUENT_DEB_VERSION} \
confluent-control-center=${CONFLUENT_VERSION}${CONFLUENT_PLATFORM_LABEL}-${CONFLUENT_DEB_VERSION} \
confluent-security=${CONFLUENT_VERSION}${CONFLUENT_PLATFORM_LABEL}-${CONFLUENT_DEB_VERSION} \
\
&& echo "===> clean up ..." \
&& apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* \
\
&& echo "===> Setting up ${COMPONENT} dirs" \
&& mkdir -p /etc/${COMPONENT}/secrets\
&& chmod -R ag+w /etc/${COMPONENT} /etc/${COMPONENT}/secrets
VOLUME ["/etc/${COMPONENT}/secrets"]
COPY include/etc/confluent/docker /etc/confluent/docker
CMD ["/etc/confluent/docker/run"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment