Use NODE_EXTRA_CA_CERTS to fix the problem

This commit is contained in:
Fang-Pen Lin
2025-11-13 09:21:52 -08:00
parent d20373e840
commit 8246483e8a
+3 -6
View File
@@ -41,12 +41,6 @@ services:
build: build:
context: ./backend context: ./backend
dockerfile: Dockerfile.dev dockerfile: Dockerfile.dev
command:
- "/bin/bash"
- "-c"
- |
update-ca-certificates && \
npm run dev:docker
depends_on: depends_on:
db: db:
condition: service_started condition: service_started
@@ -61,8 +55,11 @@ services:
- NODE_ENV=development - NODE_ENV=development
- DB_CONNECTION_URI=postgres://infisical:infisical@db/infisical?sslmode=disable - DB_CONNECTION_URI=postgres://infisical:infisical@db/infisical?sslmode=disable
- TELEMETRY_ENABLED=false - TELEMETRY_ENABLED=false
# This is needed to trust the Pebble CA certificate, which is used for the BDD tests
- NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/pebble.minica.crt
volumes: volumes:
- ./backend/src:/app/src - ./backend/src:/app/src
# This is needed to trust the Pebble CA certificate, which is used for the BDD tests
- ./backend/bdd/pebble/pebble.minica.pem:/usr/local/share/ca-certificates/pebble.minica.crt:ro - ./backend/bdd/pebble/pebble.minica.pem:/usr/local/share/ca-certificates/pebble.minica.crt:ro
- softhsm_tokens:/etc/softhsm2/tokens # SoftHSM tokens are stored in a volume to persist across container restarts - softhsm_tokens:/etc/softhsm2/tokens # SoftHSM tokens are stored in a volume to persist across container restarts
extra_hosts: extra_hosts: