ActivitySpec-Change the base images in dockerfile 67/43467/3
authorsheetalm <sheetal.mudholkar@amdocs.com>
Wed, 18 Apr 2018 05:51:26 +0000 (11:21 +0530)
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Sun, 22 Apr 2018 18:59:43 +0000 (18:59 +0000)
Change the base images in dockerfile
Use cqlsh on alpine base image instead of onap/cqlsh.
Remove default 9042 port since this image works on 9160
Default port to 9160
Add version to jetty base image

Change-Id: I88a631174801769452551d3607fe744a831068a4
Issue-ID: SDC-1048
Signed-off-by: sheetalm <sheetal.mudholkar@amdocs.com>
services/activity-spec/activity-spec-init/Dockerfile
services/activity-spec/activity-spec-init/start.sh
services/activity-spec/activity-spec-web/Dockerfile

index 25fcd38..0936146 100644 (file)
@@ -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
index 5242bd5..defc8ef 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [[ -z "${CASSANDRA_HOST}" ]]; then
        echo "CASSANDRA_HOST environment variable must be set"