generator.server.springboot.dbmigration.cassandra.Cassandra-Migration.Dockerfile.mustache Maven / Gradle / Ivy
FROM {{ cassandraDockerImage }}
# script to orchestrate the automatic keyspace creation and apply all migration scripts
ADD cassandra/scripts/autoMigrate.sh /usr/local/bin/autoMigrate
RUN chmod 755 /usr/local/bin/autoMigrate
# script to run any cql script from src/main/resources/config/cql
ADD cassandra/scripts/execute-cql.sh /usr/local/bin/execute-cql
RUN chmod 755 /usr/local/bin/execute-cql
ENTRYPOINT ["autoMigrate"]