Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/keypass-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ do
echo "INFO: Wait for DB endpoint <${KEYPASS_DB_HOST_NAME}:${KEYPASS_DB_HOST_PORT}>"
sleep 2
done
java -jar /opt/keypass/keypass.jar db migrate /opt/keypass/config.yml
#java -jar /opt/keypass/keypass.jar db migrate /opt/keypass/config.yml

java -jar /opt/keypass/keypass.jar server /opt/keypass/config.yml
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
<artifactId>dropwizard-core</artifactId>
<version>${dropwizard.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-migrations</artifactId>
<version>${dropwizard.version}</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>io.dropwizard</groupId> -->
<!-- <artifactId>dropwizard-migrations</artifactId> -->
<!-- <version>${dropwizard.version}</version> -->
<!-- </dependency> -->
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-hibernate</artifactId>
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/es/tid/fiware/iot/ac/AcService.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import es.tid.fiware.iot.ac.util.VersionEndpoint;
import io.dropwizard.db.DataSourceFactory;
import io.dropwizard.hibernate.HibernateBundle;
import io.dropwizard.migrations.MigrationsBundle;
//import io.dropwizard.migrations.MigrationsBundle;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import java.util.EnumSet;
Expand All @@ -62,12 +62,12 @@ public static void main(String[] args) throws Exception {
@Override
public void initialize(Bootstrap<AcConfig> bootstrap) {
bootstrap.addBundle(hibernate);
bootstrap.addBundle(new MigrationsBundle<AcConfig>() {
@Override
public DataSourceFactory getDataSourceFactory(AcConfig configuration) {
return configuration.getDataSourceFactory();
}
});
// bootstrap.addBundle(new MigrationsBundle<AcConfig>() {
// @Override
// public DataSourceFactory getDataSourceFactory(AcConfig configuration) {
// return configuration.getDataSourceFactory();
// }
// });
}

@Override
Expand Down