Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: allow postgresql client to make ssl connection (#2155)

Danny Xu04a17756758e
diff --git a/Dockerfile b/Dockerfile
index 0b8f2d6f76..722f42f319 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -88,6 +88,8 @@ RUN addgroup --gid 113 --system bytebase && adduser --uid 113 --system bytebase
# Directory to store the data, which can be referenced as the mounting point.
RUN mkdir -p /var/opt/bytebase
+ENV OPENSSL_CONF /etc/ssl/
+
CMD ["--host", "http://localhost", "--port", "80", "--data", "/var/opt/bytebase"]
HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:80/healthz || exit 1
diff --git a/Dockerfile.bb b/Dockerfile.bb
index a305ea4426..4025b7770a 100644
--- a/Dockerfile.bb
+++ b/Dockerfile.bb
@@ -40,6 +40,8 @@ LABEL org.opencontainers.image.authors=${BUILD_USER}
COPY --from=bb /bb-build/bb /usr/local/bin/
+ENV OPENSSL_CONF /etc/ssl/
+
CMD ["version"]
ENTRYPOINT ["bb"]
diff --git a/Dockerfile.render-demo b/Dockerfile.render-demo
index 8ecc00d4c6..a3f0de374c 100644
--- a/Dockerfile.render-demo
+++ b/Dockerfile.render-demo
@@ -84,6 +84,8 @@ RUN addgroup --gid 113 --system bytebase && adduser --uid 113 --system bytebase
# Directory to store the data, which can be referenced as the mounting point.
RUN mkdir -p /var/opt/bytebase
+ENV OPENSSL_CONF /etc/ssl/
+
CMD ["--host", "http://localhost", "--port", "80", "--data", "/var/opt/bytebase"]
HEALTHCHECK --interval=5m --timeout=60s CMD curl -f http://localhost:80/healthz || exit 1