diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a7c44c1..a985d1a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,5 +1,8 @@ FROM mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm - +# Copy the Sophos CA certificate into the container +COPY sophos.crt /usr/local/share/ca-certificates/sophos.crt +# Update system CA certificates +RUN update-ca-certificates # Install MongoDB command line tools - though mongo-database-tools not available on arm64 ARG MONGO_TOOLS_VERSION=6.0 RUN . /etc/os-release \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3daf187..16ff1e6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,10 +5,11 @@ "dockerComposeFile": "docker-compose.yml", "service": "app", "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", - // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, - + "containerEnv": { + "NODE_EXTRA_CA_CERTS": "/usr/local/share/ca-certificates/sophos.crt" + }, // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. @@ -19,13 +20,10 @@ ] } } - // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [3000, 27017], - // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" -} +} \ No newline at end of file diff --git a/.devcontainer/sophos.crt b/.devcontainer/sophos.crt new file mode 100644 index 0000000..701221f --- /dev/null +++ b/.devcontainer/sophos.crt @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBlzCCATygAwIBAgIQ+r1RZTAbugn7zlrbTm7vHDAKBggqhkjOPQQDAjAzMSAw +HgYDVQQDExdTb3Bob3MgRW5kcG9pbnQgRUMgUm9vdDEPMA0GA1UEChMGU29waG9z +MB4XDTIzMDEyOTAwMzMwN1oXDTMwMDEyODE3MTczMVowMzEgMB4GA1UEAxMXU29w +aG9zIEVuZHBvaW50IEVDIFJvb3QxDzANBgNVBAoTBlNvcGhvczBZMBMGByqGSM49 +AgEGCCqGSM49AwEHA0IABEl/hnLbxbDu20CgMwEmkTyz3HGt/KWZeg7p10rZz60e +VgOwmGYBh+0maeHKKGhxCs2+QgCde7roJodn/FteQaqjMjAwMB0GA1UdDgQWBBTX +b35JZhaEglsn4+ign9pOsHQjczAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMC +A0kAMEYCIQDSWQ5VlOYhexhqygFekzI5EeT7ERibOn8KIHM9cOZQsQIhAPxje//X +sapiH40dHw/cowZb4YBnZYDjlgWnj0vUHvhi +-----END CERTIFICATE-----