summaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-init
diff options
context:
space:
mode:
Diffstat (limited to 'services/activity-spec/activity-spec-init')
-rw-r--r--services/activity-spec/activity-spec-init/Dockerfile8
-rw-r--r--services/activity-spec/activity-spec-init/start.sh2
2 files changed, 6 insertions, 4 deletions
diff --git a/services/activity-spec/activity-spec-init/Dockerfile b/services/activity-spec/activity-spec-init/Dockerfile
index 25fcd38411..09361461dd 100644
--- a/services/activity-spec/activity-spec-init/Dockerfile
+++ b/services/activity-spec/activity-spec-init/Dockerfile
@@ -1,10 +1,12 @@
-FROM cassandra:2.1.9
+FROM alpine:3.7
-ENV CASSANDRA_PORT=9042
+RUN apk add --no-cache 'python<3' py-pip && pip install cqlsh==4.0.1
+
+ENV CASSANDRA_PORT=9160
COPY create_activityspec_db.cql .
COPY start.sh .
RUN chmod 744 start.sh
-ENTRYPOINT ["/start.sh"] \ No newline at end of file
+ENTRYPOINT ["./start.sh"] \ No newline at end of file
diff --git a/services/activity-spec/activity-spec-init/start.sh b/services/activity-spec/activity-spec-init/start.sh
index 5242bd5d9e..defc8efedf 100644
--- a/services/activity-spec/activity-spec-init/start.sh
+++ b/services/activity-spec/activity-spec-init/start.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
if [[ -z "${CASSANDRA_HOST}" ]]; then
echo "CASSANDRA_HOST environment variable must be set"