Skip to content

Commit

Permalink
Do not use DB tool for recreation in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Dec 2, 2024
1 parent 8b0f913 commit d25d018
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ private static void migrateToH2v2IfNeeded(File databaseFile, String dbConnection
// TODO sist 02.12.2024: Build for linux and arm and upload all as assets
// TODO sist 02.12.2024: Build and upload arm release
logger.debug("org.graalvm.nativeimage.imagecode: {}", System.getProperty("org.graalvm.nativeimage.imagecode"));
if (System.getProperty("org.graalvm.nativeimage.imagecode") != null) {
boolean useDbTool = System.getProperty("org.graalvm.nativeimage.imagecode") != null;
if ("false".equals(System.getenv("use_db_tool"))) {
logger.debug("Not using DB tool");
useDbTool = false;
}
if (useDbTool) {
String suffix;
String fileEnding = "";
if (System.getProperty("os.name").toLowerCase().contains("win")) {
Expand Down
2 changes: 2 additions & 0 deletions docker/docker-compose-systemtest/linux/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ services:
- "5077:5076"
environment:
- spring_profiles_active=build,systemtest
# Do not use DB tool in pipeline because running executable is not allowed or doesn't work?
- use_db_tool=false
volumes:
- /tmp/hydra/v1MigrationDataFolder:/data
- /tmp/hydraBlackhole_v1Migration:/hydraBlackhole
Expand Down

0 comments on commit d25d018

Please sign in to comment.