summaryrefslogtreecommitdiffstats
path: root/asdctool
diff options
context:
space:
mode:
Diffstat (limited to 'asdctool')
-rw-r--r--asdctool/sdc-cassandra-init/Dockerfile12
-rw-r--r--asdctool/sdc-cassandra-init/startup.sh4
2 files changed, 8 insertions, 8 deletions
diff --git a/asdctool/sdc-cassandra-init/Dockerfile b/asdctool/sdc-cassandra-init/Dockerfile
index 64dbe05e5d..b1ff2ae95e 100644
--- a/asdctool/sdc-cassandra-init/Dockerfile
+++ b/asdctool/sdc-cassandra-init/Dockerfile
@@ -1,12 +1,12 @@
-FROM onap/base_sdc-cqlsh:1.5.0-SNAPSHOT-latest
+FROM onap/base_sdc-cqlsh:1.6.0-SNAPSHOT-latest
-COPY chef-solo /root/chef-solo/
+COPY --chown=sdc:sdc chef-solo /home/sdc/chef-solo/
-COPY chef-repo/cookbooks /root/chef-solo/cookbooks/
+COPY --chown=sdc:sdc chef-repo/cookbooks /home/sdc/chef-solo/cookbooks/
-COPY startup.sh /root/
+COPY --chown=sdc:sdc startup.sh /home/sdc/
-RUN chmod 770 /root/startup.sh
+RUN chmod 770 /home/sdc/startup.sh
-ENTRYPOINT [ "/root/startup.sh" ]
+ENTRYPOINT [ "/home/sdc/startup.sh" ]
diff --git a/asdctool/sdc-cassandra-init/startup.sh b/asdctool/sdc-cassandra-init/startup.sh
index 13c882ab09..3e474f3c89 100644
--- a/asdctool/sdc-cassandra-init/startup.sh
+++ b/asdctool/sdc-cassandra-init/startup.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-cd /root/chef-solo
+cd /home/sdc/chef-solo
chef-solo -c solo.rb -E ${ENVNAME}
rc=$?
-if [[ $rc != 0 ]]; then exit $rc; fi \ No newline at end of file
+if [[ $rc != 0 ]]; then exit $rc; fi