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

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

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

      
    
Rootfs path

      
    
Size
3024 (3.0 KB)
MD5
e2956990e26ce93b20ac5222301fd58d
SHA1
9b0054d880e0f12092f842e16bb135079e53c5df
SHA256
472ef189088be89c713665599e92e12c8a24f5917a2d6c22b2745fa6b2f39526
SHA512

      
    
SHA1_git
1a574397cfe785f29e1e37003f4fa3e8835e3d63
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Dockerfile | 3.0 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 ghcr.io/graalvm/graalvm-community:21 AS build-native-image ARG kafka_url WORKDIR /app ENV NATIVE_IMAGE_PATH="native-image" ENV KAFKA_DIR="/app/kafka" ENV NATIVE_CONFIGS_DIR="/app/native-image-configs" ENV KAFKA_LIBS_DIR="$KAFKA_DIR/libs" ENV TARGET_PATH="$KAFKA_DIR/kafka.Kafka" COPY native-image-configs $NATIVE_CONFIGS_DIR COPY native_command.sh native_command.sh COPY *kafka.tgz /app RUN if [ -n "$kafka_url" ]; then \ microdnf install wget; \ 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; \ gpg --import KEYS; \ gpg --batch --verify kafka.tgz.asc kafka.tgz; \ fi; \ mkdir $KAFKA_DIR; \ tar xfz kafka.tgz -C $KAFKA_DIR --strip-components 1; \ # Build the native-binary of the apache kafka using graalVM native-image. /app/native_command.sh $NATIVE_IMAGE_PATH $NATIVE_CONFIGS_DIR $KAFKA_LIBS_DIR $TARGET_PATH FROM alpine:latest EXPOSE 9092 ARG build_date 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 apk update ; \ apk add --no-cache gcompat ; \ apk add --no-cache bash ; \ mkdir -p /etc/kafka/docker /mnt/shared/config /opt/kafka/config /etc/kafka/secrets ; \ adduser -h /home/appuser -D --shell /bin/bash appuser ; \ chown appuser:root -R /etc/kafka /opt/kafka /mnt/shared/config ; \ chmod -R ug+w /etc/kafka /opt/kafka /mnt/shared/config ; COPY server.properties /etc/kafka/docker/server.properties COPY --chown=appuser:root --from=build-native-image /app/kafka/kafka.Kafka /opt/kafka/ COPY --chown=appuser:root --from=build-native-image /app/kafka/config/log4j2.yaml /etc/kafka/docker/ COPY --chown=appuser:root --from=build-native-image /app/kafka/config/tools-log4j2.yaml /etc/kafka/docker/ COPY --chown=appuser:root resources/common-scripts /etc/kafka/docker/ COPY --chown=appuser:root launch /etc/kafka/docker/ USER appuser VOLUME ["/etc/kafka/secrets", "/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
25.93
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 8 8
https://downloads.apache.org/kafka/KEYS 37 37
https://github.com/apache/kafka 56 56