Implement simple onboarding cassandra upgrade
Introduces a folder to hold cql scripts to upgrade the onboarding
cassandra. The files will be copied to the docker and executed in
alphabetical order.
The suggested pattern for the file names is YYYYMMDD-changeName.cql.
Change-Id: Ia32a63ec5ab4417cf0df8bb5536c7f041e2327c9
Issue-ID: SDC-3669
Signed-off-by: andre.schmid <andre.schmid@est.tech>
diff --git a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile
index 8408d2f..05034e1 100644
--- a/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile
+++ b/openecomp-be/dist/sdc-onboard-db-init-docker/artifacts/Dockerfile
@@ -32,8 +32,8 @@
COPY --chown=sdc:sdc init_keyspaces.cql /home/sdc/
COPY --chown=sdc:sdc init_schemas.cql /home/sdc/
-COPY --chown=sdc:sdc alter_tables.cql /home/sdc/
-COPY --chown=sdc:sdc startup.sh /home/sdc/
+COPY --chown=sdc:sdc upgrade-scripts /home/sdc/upgrade-scripts
+COPY --chown=sdc:sdc startup.sh /home/sdc/
RUN chmod 770 /home/sdc/startup.sh