kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/docker/jvm/Dockerfile

Path
kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/docker/jvm/Dockerfile
Status
scanned
Type
file
Name
Dockerfile
Extension

      
    
Programming language
verilog
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
4203 (4.1 KB)
MD5
d70ab2624ba57e1090770bc3dd9239e6
SHA1
79f2f4717465b33e3769fcc68de5755734e74d6f
SHA256
ec159341f7c9d8a76722d2b9d72469c41eafd5cb8257edf215aca8011aaa9f5c
SHA512

      
    
SHA1_git
6d65b2c41c9974f0b0f468c77e0dca780491b51a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Dockerfile | 4.1 KB |

############################################################################### # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################### FROM eclipse-temurin:21-jre-alpine AS build-jsa USER root # Get kafka from https://archive.apache.org/dist/kafka and pass the url through build arguments ARG kafka_url COPY jsa_launch /etc/kafka/docker/jsa_launch COPY server.properties /etc/kafka/docker/server.properties COPY *kafka.tgz kafka.tgz RUN set -eux ; \ apk update ; \ apk upgrade ; \ apk add --no-cache bash; \ mkdir opt/kafka; \ if [ -n "$kafka_url" ]; then \ apk add --no-cache wget gcompat gpg gpg-agent procps; \ wget -nv -O kafka.tgz "$kafka_url"; \ wget -nv -O kafka.tgz.asc "$kafka_url.asc"; \ wget -nv -O KEYS https://downloads.apache.org/kafka/KEYS; \ tar xfz kafka.tgz -C opt/kafka --strip-components 1; \ gpg --import KEYS; \ gpg --batch --verify kafka.tgz.asc kafka.tgz; \ else \ tar xfz kafka.tgz -C opt/kafka --strip-components 1; \ fi; # Generate jsa files using dynamic CDS for kafka server start command and kafka storage format command RUN /etc/kafka/docker/jsa_launch FROM eclipse-temurin:21-jre-alpine # exposed ports EXPOSE 9092 USER root # Get kafka from https://archive.apache.org/dist/kafka and pass the url through build arguments ARG kafka_url ARG build_date COPY *kafka.tgz kafka.tgz 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" \ org.opencontainers.image.authors="Apache Kafka" RUN mkdir opt/kafka; \ set -eux ; \ apk update ; \ apk upgrade ; \ apk add --no-cache bash; \ if [ -n "$kafka_url" ]; then \ apk add --no-cache wget gcompat gpg gpg-agent procps; \ wget -nv -O kafka.tgz "$kafka_url"; \ wget -nv -O kafka.tgz.asc "$kafka_url.asc"; \ tar xfz kafka.tgz -C /opt/kafka --strip-components 1; \ wget -nv -O KEYS https://downloads.apache.org/kafka/KEYS; \ gpg --import KEYS; \ gpg --batch --verify kafka.tgz.asc kafka.tgz; \ rm kafka.tgz kafka.tgz.asc KEYS; \ apk del wget gpg gpg-agent; \ else \ tar xfz kafka.tgz -C /opt/kafka --strip-components 1; \ rm kafka.tgz; \ fi; \ mkdir -p /var/lib/kafka/data /etc/kafka/secrets; \ mkdir -p /etc/kafka/docker /usr/logs /mnt/shared/config; \ adduser -h /home/appuser -D --shell /bin/bash appuser; \ chown appuser:appuser -R /usr/logs /opt/kafka /mnt/shared/config; \ chown appuser:root -R /var/lib/kafka /etc/kafka/secrets /etc/kafka; \ chmod -R ug+w /etc/kafka /var/lib/kafka /etc/kafka/secrets; \ cp /opt/kafka/config/log4j2.yaml /etc/kafka/docker/log4j2.yaml; \ cp /opt/kafka/config/tools-log4j2.yaml /etc/kafka/docker/tools-log4j2.yaml; \ apk cache clean; COPY server.properties /etc/kafka/docker/server.properties COPY --from=build-jsa kafka.jsa /opt/kafka/kafka.jsa COPY --from=build-jsa storage.jsa /opt/kafka/storage.jsa COPY --chown=appuser:appuser resources/common-scripts /etc/kafka/docker COPY --chown=appuser:appuser launch /etc/kafka/docker/launch USER appuser VOLUME ["/etc/kafka/secrets", "/var/lib/kafka/data", "/mnt/shared/config"] CMD ["/etc/kafka/docker/run"]
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
19.44
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 10 10
https://archive.apache.org/dist/kafka 23 23
https://downloads.apache.org/kafka/KEYS 40 40
https://github.com/apache/kafka 68 68