From 267889b424378ce685e3488a436d92f7e70266a2 Mon Sep 17 00:00:00 2001 From: Malte Hansen Date: Tue, 3 Dec 2024 11:05:06 +0100 Subject: [PATCH] Update Dockerfile to build init-cassandra container --- Dockerfile | 3 --- init-cassandra.Dockerfile | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 Dockerfile create mode 100644 init-cassandra.Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 9cd870a..0000000 --- a/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM cassandra:3.11.14 - -COPY src/main/resources/init_script.cql ./init.cql diff --git a/init-cassandra.Dockerfile b/init-cassandra.Dockerfile new file mode 100644 index 0000000..5cec1ec --- /dev/null +++ b/init-cassandra.Dockerfile @@ -0,0 +1,6 @@ +FROM cassandra:3.11.14 + +COPY src/main/resources/init_script.cql ./init.cql + +CMD ["cqlsh", "cassandra-explorviz", "-f", "init.cql"] +#CMD ["cqlsh cassandra-explorviz -f init.cql"]