forked from MrS0m30n3/youtube-dl-gui
-
-
Notifications
You must be signed in to change notification settings - Fork 121
/
devcontainer.json
74 lines (74 loc) · 2.4 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
// https://github.com/microsoft/vscode/blob/main/.devcontainer/devcontainer.json
"name": "yt-dlg",
"build": {
"dockerfile": "Dockerfile",
"cacheFrom": "ghcr.io/oleksis/yt-dlg",
"context": "..",
"args": {
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
// https://github.com/microsoft/vscode-dev-containers/tree/main/containers/python-3
"VARIANT": "3.10.10-slim-bullseye",
// Options
"NODE_VERSION": "none",
// set devcontainer-cli arg for Dockerfile
"devcontainercli": "true"
}
},
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/github-cli": "latest",
// "ghcr.io/devcontainers/features/docker-in-docker": {},
// "ghcr.io/devcontainers/features/node": {},
"ghcr.io/devcontainers/features/desktop-lite:1": {
"password": "vscode",
"webPort": "6080",
"vncPort": "5901"
},
"ghcr.io/oleksis/devcontainer-features/python-launcher:1": {}
},
"runArgs": [
"--init",
"--privileged",
"--shm-size=1g"
],
"containerEnv": {
"DISPLAY": ":1"
},
"forwardPorts": [
6080,
5901
],
"portsAttributes": {
"6080": {
"label": "Desktop access (password: vscode)",
"onAutoForward": "silent"
},
"5901": {
"label": "VNC TCP port (password: vscode)",
"onAutoForward": "silent"
}
},
// Add the IDs of extensions you want installed when the container is created.
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.isort",
"redhat.vscode-xml",
"redhat.vscode-yaml",
"ms-vsliveshare.vsliveshare"
]
}
},
// Use 'postCreateCommand' to run commands after the container is created.
// npm install --location=global @devcontainers/cli npm
"postCreateCommand": "python3 -m pip install --disable-pip-version-check --upgrade pip setuptools wheel && curl -L -C - -O https://github.com/oleksis/youtube-dl-gui/releases/download/v1.8.4/wxPython-4.2.1a1-cp310-cp310-linux_x86_64.whl && python3 -m pip install --disable-pip-version-check wxPython-4.2.1a1-cp310-cp310-linux_x86_64.whl -r requirements/requirements.in -r requirements/requirements-binaries.in -r requirements/requirements-dev.in",
"hostRequirements": {
"memory": "6gb"
}
}