|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/python
|
3 | 3 | {
|
4 |
| - "name": "Python 3", |
5 |
| - |
6 |
| - "initializeCommand": "make compile_frontend" |
| 4 | + "name": "GPT-Code-UI", |
| 5 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | + "image": "mcr.microsoft.com/devcontainers/python:0-3.11", |
| 7 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 8 | + "features": { |
| 9 | + "ghcr.io/jungaretti/features/make:1": {}, |
| 10 | + "ghcr.io/akhildevelops/devcontainer-features/pip:0": {}, |
| 11 | + "ghcr.io/devcontainers/features/node:1": {} |
| 12 | + }, |
7 | 13 |
|
8 |
| - // Features to add to the dev container. More info: https://containers.dev/features. |
9 |
| - // "features": {}, |
| 14 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 15 | + "forwardPorts": [8080], |
10 | 16 |
|
11 |
| - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
12 |
| - // "forwardPorts": [], |
| 17 | + "postCreateCommand": "make compile_frontend", |
| 18 | + "postStartCommand": "pip3 install --user gpt-code-ui", |
| 19 | + "postAttachCommand": "gptcode", |
13 | 20 |
|
14 |
| - // Use 'postCreateCommand' to run commands after the container is created. |
15 |
| - // "postCreateCommand": "pip3 install --user -r requirements.txt", |
| 21 | + // Configure tool-specific properties. |
| 22 | + // "customizations": {}, |
16 | 23 |
|
17 |
| - // Configure tool-specific properties. |
18 |
| - // "customizations": {}, |
19 |
| - |
20 |
| - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
21 |
| - // "remoteUser": "root" |
| 24 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 25 | + // Is there a way to allow the make command to execute without being root in the container? |
| 26 | + // An error occurs when attempting to rsync as anything other than root user. |
| 27 | + "remoteUser": "root" |
22 | 28 | }
|
0 commit comments