Skip to content

Commit 6794de8

Browse files
[CDAPI-100]: Trust our dev certificates in the dev container
1 parent 42d91da commit 6794de8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,17 @@
3838
"omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions.git https://github.com/zsh-users/zsh-syntax-highlighting.git"
3939
}
4040
},
41-
"postCreateCommand": "doas apk add --no-cache openjdk21-jre && scripts/devcontainer/configure-zsh.sh && bash -c 'source ~/.bashrc && make config && pyenv activate pathology && make dependencies'",
4241
"initializeCommand": "scripts/devcontainer/create-docker-network-if-required.sh && cp .tool-versions ${localWorkspaceFolder}/infrastructure/images/build-container/resources/.tool-versions",
42+
"postCreateCommand": "doas apk add --no-cache openjdk21-jre && scripts/devcontainer/configure-zsh.sh && bash -c 'source ~/.bashrc && make config && pyenv activate pathology && make dependencies'",
4343
"mounts": [
4444
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind,consistency=cached",
4545
"source=/home/${localEnv:USER}/.proxygen,target=/home/pathology-dev/.proxygen,type=bind,consistency=cached"
4646
],
4747
"remoteUser": "pathology-dev",
4848
"containerUser": "pathology-dev",
49+
"containerEnv": {
50+
"REQUESTS_CA_BUNDLE": "/etc/ssl/cert.pem"
51+
},
4952
"portsAttributes": {
5053
// Disabling automatic port forwarding as the devcontainer should already have access to any required ports.
5154
"default": {

0 commit comments

Comments
 (0)