add sophos certificate

This commit is contained in:
Dieter Blocher
2025-01-29 09:30:45 +00:00
parent d7c69ab6ee
commit 8b5a6e27dd
3 changed files with 19 additions and 7 deletions

View File

@@ -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 \

View File

@@ -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"
}

11
.devcontainer/sophos.crt Normal file
View File

@@ -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-----