44 lines
2.5 KiB
Docker
44 lines
2.5 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security"
|
|
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
|
|
org.opencontainers.image.description="Application packaged by Bitnami" \
|
|
org.opencontainers.image.ref.name="4.0.5-debian-11-r9" \
|
|
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/cassandra" \
|
|
org.opencontainers.image.title="cassandra" \
|
|
org.opencontainers.image.vendor="VMware, Inc." \
|
|
org.opencontainers.image.version="4.0.5"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libbz2-1.0 libc6 libcom-err2 libcrypt1 libffi7 libgcc-s1 libgssapi-krb5-2 libjemalloc2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblzma5 libncursesw6 libnsl2 libreadline8 libsqlite3-0 libssl1.1 libtinfo6 libtirpc3 procps tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.9.13-164" --checksum 84dc1804c30767dba8197459b7d20b77279f80ee52fdfd126487d179d124346f
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "1.8.345-1" --checksum 4d90bf2066c8d6605ac771e9b97c1188f4491d458fcb56956eeead6a18f70ac4
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-153" --checksum d3ae0109be24e8bc56f97359b8290b91243454de946dd60bd8520a0896a88449
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.27.2-1" --checksum 44d0058c0fffa1ccc89c081ed3e5c897489fa02580a839cfe1d37b2ca771f237
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "cassandra" "4.0.5-1" --checksum f3daf03dc5ecf4896f320fecae914e1d844ae579aa246ffe3b09fc179b562f61
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
RUN ln -s /opt/bitnami/scripts/cassandra/entrypoint.sh /entrypoint.sh
|
|
RUN ln -s /opt/bitnami/scripts/cassandra/run.sh /run.sh
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/cassandra/postunpack.sh
|
|
RUN /opt/bitnami/scripts/java/postunpack.sh
|
|
ENV APP_VERSION="4.0.5" \
|
|
BITNAMI_APP_NAME="cassandra" \
|
|
JAVA_HOME="/opt/bitnami/java" \
|
|
PATH="/opt/bitnami/python/bin:/opt/bitnami/java/bin:/opt/bitnami/common/bin:/opt/bitnami/cassandra/bin:$PATH"
|
|
|
|
EXPOSE 7000 9042
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/cassandra/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/cassandra/run.sh" ]
|