Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: increase alpine stack size (#16010)
Danny Xu360843632575
diff --git a/scripts/Dockerfile b/scripts/Dockerfileindex d2c4f5d6bc..2803370c09 100644--- a/scripts/Dockerfile+++ b/scripts/Dockerfile@@ -18,7 +18,7 @@ ARG RELEASE="release"ADD go.mod go.sum /RUN go mod download-RUN apk add --no-cache build-base krb5-dev binutils-gold+RUN apk add --no-cache clang krb5-dev binutils-goldWORKDIR /backend-build@@ -28,9 +28,9 @@ COPY . .COPY --from=frontend /frontend-build/frontend/dist ./backend/server/dist# -ldflags="-w -s" means omit DWARF symbol table and the symbol table and debug information-RUN go build \+RUN CC=clang go build \--tags "${RELEASE},embed_frontend,docker" \- -ldflags="-w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=${GIT_COMMIT}'" \+ -ldflags="-extldflags '-Wl,-z,stack-size=0x1000000' -w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=${GIT_COMMIT}'" \-o bytebase ./backend/bin/server/main.go# Use debian because mysql requires glibc.diff --git a/scripts/Dockerfile.aws b/scripts/Dockerfile.awsindex 86a517347b..0ddcf83c86 100644--- a/scripts/Dockerfile.aws+++ b/scripts/Dockerfile.aws@@ -18,7 +18,7 @@ ARG RELEASE="release"ADD go.mod go.sum /RUN go mod download-RUN apk add --no-cache build-base krb5-dev binutils-gold+RUN apk add --no-cache clang krb5-dev binutils-goldWORKDIR /backend-build@@ -28,9 +28,9 @@ COPY . .COPY --from=frontend /frontend-build/frontend/dist ./backend/server/dist# -ldflags="-w -s" means omit DWARF symbol table and the symbol table and debug information-RUN go build \- --tags "${RELEASE},embed_frontend,aws" \- -ldflags="-w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=${GIT_COMMIT}'" \+RUN CC=clang go build \+ --tags "${RELEASE},embed_frontend,docker" \+ -ldflags="-extldflags '-Wl,-z,stack-size=0x1000000' -w -s -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.version=${VERSION}' -X 'github.com/bytebase/bytebase/backend/bin/server/cmd.gitcommit=${GIT_COMMIT}'" \-o bytebase ./backend/bin/server/main.go# Use debian because mysql requires glibc.