37 lines
2.1 KiB
Docker
37 lines
2.1 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"
|
|
|
|
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-152" --checksum 8bc1fe71b2fcda926d76852f1c4873ccf34765cded4f0211da7fa87191d8f030
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "1.8.333-151" --checksum e0b96c241eeb16c7ba019193535c4d5c2b447a479d7f2056081f496eafbb94c7
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-151" --checksum 089bb11a3bc6031c5a91ab5f9534e9e7e41b928d10d72a3986f16bb61d3a9900
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.25.3-2" --checksum 84ce4016efca8b6a6713d69e9d7c19003d4a530f8b420fb8cdcaa9cf9af47ee6
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "cassandra" "4.0.4-151" --checksum a5a5a650c9772539e436d1f3a9608c3199fcd90600f463ca7229f5ba87dde457
|
|
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.4" \
|
|
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" ]
|