mirror of https://github.com/apache/kafka.git
KAFKA-17834: Improvements to Dockerfile (#17554)
Reviewers: Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
a0640f9517
commit
da6a562f6d
|
@ -68,7 +68,7 @@ LABEL org.label-schema.name="kafka" \
|
|||
org.label-schema.description="Apache Kafka" \
|
||||
org.label-schema.build-date="${build_date}" \
|
||||
org.label-schema.vcs-url="https://github.com/apache/kafka" \
|
||||
maintainer="Apache Kafka"
|
||||
org.opencontainers.image.authors="Apache Kafka"
|
||||
|
||||
RUN mkdir opt/kafka; \
|
||||
set -eux ; \
|
||||
|
|
|
@ -55,7 +55,7 @@ LABEL org.label-schema.name="kafka" \
|
|||
org.label-schema.description="Apache Kafka" \
|
||||
org.label-schema.build-date="${build_date}" \
|
||||
org.label-schema.vcs-url="https://github.com/apache/kafka" \
|
||||
maintainer="Apache Kafka"
|
||||
org.opencontainers.image.authors="Apache Kafka"
|
||||
|
||||
RUN apk update ; \
|
||||
apk add --no-cache gcompat ; \
|
||||
|
|
|
@ -44,14 +44,14 @@ RUN if [ "$KAFKA_MODE" = "native" ]; then \
|
|||
|
||||
FROM $jdk_version
|
||||
|
||||
MAINTAINER Apache Kafka dev@kafka.apache.org
|
||||
LABEL org.opencontainers.image.authors="Apache Kafka dev@kafka.apache.org"
|
||||
VOLUME ["/opt/kafka-dev"]
|
||||
|
||||
# Set the timezone.
|
||||
ENV TZ="/usr/share/zoneinfo/America/Los_Angeles"
|
||||
|
||||
# Do not ask for confirmations when running apt-get, etc.
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Set the ducker.creator label so that we know that this is a ducker image. This will make it
|
||||
# visible to 'ducker purge'. The ducker.creator label also lets us know what UNIX user built this
|
||||
|
@ -155,4 +155,4 @@ RUN useradd -u $UID -ms /bin/bash ducker \
|
|||
|
||||
USER ducker
|
||||
|
||||
CMD sudo service ssh start && tail -f /dev/null
|
||||
CMD ["sudo", "service", "ssh", "start", "-D"]
|
||||
|
|
Loading…
Reference in New Issue