|
11 | 11 | 4200 |
12 | 12 | ], |
13 | 13 | "containerEnv": { |
14 | | - "HTTP_PROXY": "${localEnv:http_proxy}", |
15 | | - "HTTPS_PROXY": "${localEnv:https_proxy}", |
16 | | - "NO_PROXY": "${localEnv:no_proxy}", |
17 | | - "http_proxy": "${localEnv:http_proxy}", |
18 | | - "https_proxy": "${localEnv:https_proxy}", |
19 | | - "no_proxy": "${localEnv:no_proxy}" |
| 14 | + "HTTP_PROXY": "${localEnv:HTTP_PROXY:}", |
| 15 | + "HTTPS_PROXY": "${localEnv:HTTPS_PROXY:}", |
| 16 | + "NO_PROXY": "${localEnv:NO_PROXY:}", |
| 17 | + "http_proxy": "${localEnv:http_proxy:}", |
| 18 | + "https_proxy": "${localEnv:https_proxy:}", |
| 19 | + "no_proxy": "${localEnv:no_proxy:}" |
20 | 20 | }, |
21 | | - "runArgs": [ |
22 | | - "--env", |
23 | | - "HTTP_PROXY=${env:http_proxy:-}", |
24 | | - "--env", |
25 | | - "HTTPS_PROXY=${env:https_proxy:-}", |
26 | | - "--env", |
27 | | - "NO_PROXY=${env:no_proxy:-}", |
28 | | - "--env", |
29 | | - "http_proxy=${env:http_proxy:-}", |
30 | | - "--env", |
31 | | - "https_proxy=${env:https_proxy:-}", |
32 | | - "--env", |
33 | | - "no_proxy=${env:no_proxy:-}" |
34 | | - ], |
35 | | - |
36 | 21 | "portsAttributes": { |
37 | 22 | "4200": { |
38 | 23 | "label": "Angular Dev Server", |
39 | 24 | "onAutoForward": "notify" |
40 | 25 | } |
41 | 26 | }, |
42 | | - // Use 'onCreateCommand' to run commands once when the container is created. |
43 | | - "onCreateCommand": "if [ -n \"$HTTP_PROXY\" ] || [ -n \"$HTTPS_PROXY\" ]; then sudo bash -c \"echo 'Acquire::http::Proxy \\\"'$HTTP_PROXY'\\\";' > /etc/apt/apt.conf.d/proxy.conf && echo 'Acquire::https::Proxy \\\"'$HTTPS_PROXY'\\\";' >> /etc/apt/apt.conf.d/proxy.conf\"; fi", |
44 | 27 | // Use 'postCreateCommand' to run commands after the container is created. |
45 | | - "postCreateCommand": "/bin/bash .devcontainer/post-create.sh" |
| 28 | + "postCreateCommand": "sed -i 's/\\r$//' .devcontainer/post-create.sh && /bin/bash .devcontainer/post-create.sh" |
46 | 29 | // Configure tool-specific properties. |
47 | 30 | // "customizations": {}, |
48 | 31 | // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
|
0 commit comments