Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: change preloading path (#10029)
zll600be76455de64f
diff --git a/backend/resources/utils/install_util_not_embeded.go b/backend/resources/utils/install_util_not_embeded.goindex 42f64aa290..2104d7e398 100644--- a/backend/resources/utils/install_util_not_embeded.go+++ b/backend/resources/utils/install_util_not_embeded.go@@ -44,15 +44,15 @@ func getPreloadingUtilDir(utilDir string) string {// So we extract resources to these specific paths during build and then symlink them to actual paths.if strings.Contains(utilDir, "mysql") {// we only support linux/amd64 or linux/arm64 now.- return fmt.Sprintf("/var/opt/bytebase/resources/mysqlutil-8.0.33-linux-%s", runtime.GOARCH)+ return fmt.Sprintf("/bytebase/resources/mysqlutil-8.0.33-linux-%s", runtime.GOARCH)}if strings.Contains(utilDir, "mongoutil") {// we only support linux/amd64 or linux/arm64 now.- return fmt.Sprintf("/var/opt/bytebase/resources/mongoutil-1.6.1-linux-%s", runtime.GOARCH)+ return fmt.Sprintf("/bytebase/resources/mongoutil-1.6.1-linux-%s", runtime.GOARCH)}if strings.Contains(utilDir, "postgres") {// we only support linux/amd64 or linux/arm64 now.- return fmt.Sprintf("/var/opt/bytebase/resources/postgres-linux-%s-16", runtime.GOARCH)+ return fmt.Sprintf("/bytebase/resources/postgres-linux-%s-16", runtime.GOARCH)}return utilDir}diff --git a/scripts/Dockerfile b/scripts/Dockerfileindex 958161b849..46f9ed5f00 100644--- a/scripts/Dockerfile+++ b/scripts/Dockerfile@@ -111,7 +111,7 @@ COPY ./scripts /usr/local/bin/COPY ./scripts/.psqlrc /root/.psqlrcCOPY --from=backend /backend-build/bytebase /usr/local/bin/COPY --from=backend /etc/ssl/certs /etc/ssl/certs-COPY --from=decompressor /var/opt/bytebase/resources /var/opt/bytebase/resources+COPY --from=decompressor /var/opt/bytebase/resources /bytebase/resourcesENV OPENSSL_CONF /etc/ssl/diff --git a/scripts/Dockerfile.depot b/scripts/Dockerfile.depotindex 75553daff9..171f9adc8b 100644--- a/scripts/Dockerfile.depot+++ b/scripts/Dockerfile.depot@@ -86,7 +86,7 @@ COPY ./scripts /usr/local/bin/COPY ./scripts/.psqlrc /root/.psqlrcCOPY --from=backend /backend-build/bytebase /usr/local/bin/COPY --from=backend /etc/ssl/certs /etc/ssl/certs-COPY --from=decompressor /var/opt/bytebase/resources /var/opt/bytebase/resources+COPY --from=decompressor /var/opt/bytebase/resources /bytebase/resourcesENV OPENSSL_CONF /etc/ssl/diff --git a/scripts/Dockerfile.render-demo b/scripts/Dockerfile.render-demoindex 9d52c18d7f..bcabf57700 100644--- a/scripts/Dockerfile.render-demo+++ b/scripts/Dockerfile.render-demo@@ -96,7 +96,7 @@ COPY ./scripts /usr/local/bin/COPY ./scripts/.psqlrc /root/.psqlrcCOPY --from=backend /backend-build/bytebase /usr/local/bin/COPY --from=backend /etc/ssl/certs /etc/ssl/certs-COPY --from=decompressor /var/opt/bytebase/resources /var/opt/bytebase/resources+COPY --from=decompressor /var/opt/bytebase/resources /bytebase/resourcesENV OPENSSL_CONF /etc/ssl/