I am attempting to run my JHipster Microservice application as a Docker image.
I want to spin up a development container for testing. The application runs without Liquibase using the no-liquibase
profile.
I run the following command:
mvnw package -Pdev,swagger,no-liquibase verify jib:dockerBuild
However, the output I am getting confirms that no profile has been found:
No active profile set, falling back to default profiles: default
I then get errors in the logs relating to Liquibase (which should be disabled). For example:
Error creating bean with name 'liquibase' defined in class path resource [com/treasury/prime/ms/config/LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.MigrationFailedException: Migration failed for change set config/liquibase/changelog/20191114045739_added_entity_Risk.xml::20191114045739-1::jhipster:
Reason: liquibase.exception.DatabaseException: Table already exists;
How can I build the docker image with dev,no-liquibase,swagger profiles active?