Compare commits
2 Commits
e20749e5eb
...
8bf47a6c5f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8bf47a6c5f | ||
|
|
8b5a6e27dd |
@@ -1,5 +1,8 @@
|
|||||||
FROM mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm
|
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
|
# Install MongoDB command line tools - though mongo-database-tools not available on arm64
|
||||||
ARG MONGO_TOOLS_VERSION=6.0
|
ARG MONGO_TOOLS_VERSION=6.0
|
||||||
RUN . /etc/os-release \
|
RUN . /etc/os-release \
|
||||||
|
|||||||
@@ -5,10 +5,11 @@
|
|||||||
"dockerComposeFile": "docker-compose.yml",
|
"dockerComposeFile": "docker-compose.yml",
|
||||||
"service": "app",
|
"service": "app",
|
||||||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
// "features": {},
|
// "features": {},
|
||||||
|
"containerEnv": {
|
||||||
|
"NODE_EXTRA_CA_CERTS": "/usr/local/share/ca-certificates/sophos.crt"
|
||||||
|
},
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
"customizations": {
|
"customizations": {
|
||||||
// Configure properties specific to VS Code.
|
// Configure properties specific to VS Code.
|
||||||
@@ -19,13 +20,10 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
// "forwardPorts": [3000, 27017],
|
// "forwardPorts": [3000, 27017],
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
// "postCreateCommand": "yarn install",
|
// "postCreateCommand": "yarn install",
|
||||||
|
|
||||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
// "remoteUser": "root"
|
// "remoteUser": "root"
|
||||||
}
|
}
|
||||||
11
.devcontainer/sophos.crt
Normal file
11
.devcontainer/sophos.crt
Normal 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-----
|
||||||
Reference in New Issue
Block a user