From ff4b71edfc6cf561e8c27f367b2cde2d27ec904c Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 10 Oct 2024 11:09:30 +0000 Subject: [PATCH] 20.03-lts-sp4 update cassandra to 5.0.1-tentative --- .../5.0.1-tentative/20.03-lts-sp4/Dockerfile | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cassandra/5.0.1-tentative/20.03-lts-sp4/Dockerfile diff --git a/cassandra/5.0.1-tentative/20.03-lts-sp4/Dockerfile b/cassandra/5.0.1-tentative/20.03-lts-sp4/Dockerfile new file mode 100644 index 0000000..ec20754 --- /dev/null +++ b/cassandra/5.0.1-tentative/20.03-lts-sp4/Dockerfile @@ -0,0 +1,22 @@ +ARG BASE=openeuler/openeuler:20.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG VERSION=5.0.1-tentative + +RUN yum -y install java && \ + yum clean all + +RUN groupadd --system --gid 1000 cassandra && \ + useradd --system --gid cassandra --uid 1000 cassandra + +RUN curl -o /tmp/cassandra-${VERSION}.tar.gz https://dlcdn.apache.org/cassandra/${VERSION}/apache-cassandra-${VERSION}-bin.tar.gz && \ + tar -zxvf /tmp/cassandra-${VERSION}.tar.gz -C /tmp && \ + cd /tmp/apache-cassandra-${VERSION}/bin && \ + rm -rf /tmp/cassandra-${VERSION}.tar.gz + +EXPOSE 7000 7001 7199 9042 9160 + +WORKDIR /tmp/apache-cassandra-${VERSION}/bin + +CMD ["./cassandra", "-f", "-R"] -- Gitee