From 6eba69398236ec704737242d148fd62b236e358a Mon Sep 17 00:00:00 2001 From: jerryjzhang Date: Sun, 2 Mar 2025 20:33:55 +0800 Subject: [PATCH] (fix)(docker)Fix Dockerfile. (fix)(docker)Fix Dockerfile. --- docker/Dockerfile | 7 +++++-- .../standalone/src/main/resources/application-docker.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c2681a60a..e74861da3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,9 +1,12 @@ -# Use an official OpenJDK runtime as a parent image -FROM openjdk:21-jdk-bullseye +FROM supersonicbi/supersonic:0.9.10-SNAPSHOT # Set the working directory in the container WORKDIR /usr/src/app +# Delete old supersonic installation directory and the symbolic link +RUN rm -rf /usr/src/app/supersonic-standalone-0.9.10-SNAPSHOT +RUN rm -f /usr/src/app/supersonic-standalone-latest + # Argument to pass in the supersonic version at build time ARG SUPERSONIC_VERSION diff --git a/launchers/standalone/src/main/resources/application-docker.yaml b/launchers/standalone/src/main/resources/application-docker.yaml index 8ec7476d5..326af1d99 100644 --- a/launchers/standalone/src/main/resources/application-docker.yaml +++ b/launchers/standalone/src/main/resources/application-docker.yaml @@ -4,9 +4,9 @@ spring: url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/${DB_NAME}?stringtype=unspecified username: ${DB_USERNAME} password: ${DB_PASSWORD} - sql: init: + continue-on-error: true mode: always username: ${DB_USERNAME} password: ${DB_PASSWORD}