From 561dbb88357e7ad3ab847d7d45ee0940712d8301 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 29 Jul 2025 23:57:46 +0400 Subject: [PATCH 1/2] fix(fips): x86 support --- .../release-standalone-docker-img-postgres-offical.yml | 7 +------ Dockerfile.fips.standalone-infisical | 7 +++++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index 7a73288cb..812283b33 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -79,12 +79,7 @@ jobs: working-directory: backend - name: version output run: | - echo "Output Value: ${{ steps.version.outputs.major }}" - echo "Output Value: ${{ steps.version.outputs.minor }}" - echo "Output Value: ${{ steps.version.outputs.patch }}" - echo "Output Value: ${{ steps.version.outputs.version }}" - echo "Output Value: ${{ steps.version.outputs.version_type }}" - echo "Output Value: ${{ steps.version.outputs.increment }}" + echo "Version: ${{ steps.version.outputs.major }}" - name: Save commit hashes for tag id: commit uses: pr-mpt/actions-commit-hash@v2 diff --git a/Dockerfile.fips.standalone-infisical b/Dockerfile.fips.standalone-infisical index b95794832..974ce4a42 100644 --- a/Dockerfile.fips.standalone-infisical +++ b/Dockerfile.fips.standalone-infisical @@ -34,6 +34,8 @@ ENV VITE_INFISICAL_PLATFORM_VERSION $INFISICAL_PLATFORM_VERSION ARG CAPTCHA_SITE_KEY ENV VITE_CAPTCHA_SITE_KEY $CAPTCHA_SITE_KEY +ENV NODE_OPTIONS="--max-old-space-size=8192" + # Build RUN npm run build @@ -209,6 +211,11 @@ EXPOSE 443 RUN grep -v 'import "./lib/telemetry/instrumentation.mjs";' dist/main.mjs > dist/main.mjs.tmp && \ mv dist/main.mjs.tmp dist/main.mjs +# The OpenSSL library is installed in different locations in different architectures (x86_64 and arm64). +# This is a workaround to avoid errors when the library is not found. +RUN ln -sf /usr/local/lib64/ossl-modules /usr/local/lib/ossl-modules || \ + ln -sf /usr/local/lib/ossl-modules /usr/local/lib64/ossl-modules + USER non-root-user CMD ["./standalone-entrypoint.sh"] \ No newline at end of file From e2d48164655f6e94b958fc02cfa9294aae110048 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Wed, 30 Jul 2025 00:16:40 +0400 Subject: [PATCH 2/2] Update release-standalone-docker-img-postgres-offical.yml --- .../release-standalone-docker-img-postgres-offical.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml index 812283b33..7a73288cb 100644 --- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml +++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml @@ -79,7 +79,12 @@ jobs: working-directory: backend - name: version output run: | - echo "Version: ${{ steps.version.outputs.major }}" + echo "Output Value: ${{ steps.version.outputs.major }}" + echo "Output Value: ${{ steps.version.outputs.minor }}" + echo "Output Value: ${{ steps.version.outputs.patch }}" + echo "Output Value: ${{ steps.version.outputs.version }}" + echo "Output Value: ${{ steps.version.outputs.version_type }}" + echo "Output Value: ${{ steps.version.outputs.increment }}" - name: Save commit hashes for tag id: commit uses: pr-mpt/actions-commit-hash@v2