Skip to content

Commit 5969002

Browse files
committed
update latest - fix
1 parent 142f565 commit 5969002

File tree

5 files changed

+102
-205
lines changed

5 files changed

+102
-205
lines changed

.config/scripts/post-create.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ colorize() { # $1: color, $2: text
4646

4747
colorize main "Running post-create.sh..."
4848
colorize sub "Current directory: $(pwd)"
49+
colorize sub "Current user: $(whoami)"
4950

5051
#################################### APT #######################################
5152

@@ -70,7 +71,8 @@ sudo apt-get autoremove -y && sudo apt-get autoclean
7071
# Update .zshrc
7172
colorize sub "Setting up oh-my-zsh..."
7273

73-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/AI-Data-system-EH/user-content/main/zsh/install.sh)" -- --install-deps --no-gh
74+
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/AI-Data-system-EH/user-content/main/zsh/install.sh)" -- --deps-only -y
75+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/AI-Data-system-EH/user-content/main/zsh/install.sh)" -- --no-gh --no-git --no-ssh -y
7476

7577
# Change the default shell to zsh
7678
sudo chsh -s $(which zsh)

.devcontainer/devcontainer.json

Lines changed: 59 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,80 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
33
{
4-
"name": "ubuntu-cuda",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
// "image": "mcr.microsoft.com/devcontainers/base:jammy",
7-
// "image": "nvidia/cuda:12.3.1-runtime-ubuntu22.04",
8-
"image": "nvidia/cuda:12.8.0-runtime-ubuntu24.04",
4+
"name": "ubuntu-cuda",
5+
"image": "nvidia/cuda:12.8.0-runtime-ubuntu24.04",
96

10-
// prettier-ignore
11-
"runArgs": [
7+
// prettier-ignore
8+
"runArgs": [
129
"--name", "${localEnv:USER}-${localWorkspaceFolderBasename}",
1310
"--gpus", "all"
1411
],
1512

16-
"hostRequirements": {
17-
"gpu": true
18-
},
13+
"hostRequirements": {
14+
"gpu": true
15+
},
1916

20-
"remoteEnv": {
21-
"PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/.config/scripts/bin"
22-
},
17+
"containerEnv": {
18+
"TZ": "Asia/Seoul",
19+
"LANG": "ko_KR.UTF-8",
20+
"LC_MESSAGES": "POSIX",
21+
"NVIDIA_VISIBLE_DEVICES": "all",
22+
"NVIDIA_DRIVER_CAPABILITIES": "compute,utility"
23+
},
2324

24-
"containerEnv": {
25-
"TZ": "Asia/Seoul",
26-
"LANG": "ko_KR.UTF-8",
27-
"LC_MESSAGES": "POSIX",
28-
"NVIDIA_VISIBLE_DEVICES": "all",
29-
"NVIDIA_DRIVER_CAPABILITIES": "compute,utility",
30-
// env variable using in post-create.sh
31-
"SKIP_PACKAGES_UPDATE": "false",
32-
// groups to ignore when poetry install (see groups in pyproject.toml)
33-
// "POETRY_WITHOUT_GROUPS": "pytorch,test"
34-
"POETRY_WITHOUT_GROUPS": ""
35-
},
36-
"containerUser": "vscode",
25+
"workspaceFolder": "/workspace/${localWorkspaceFolderBasename}",
26+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/${localWorkspaceFolderBasename},type=bind,consistency=cached",
3727

38-
"workspaceFolder": "/home/vscode/workspace/${localWorkspaceFolderBasename}",
39-
"workspaceMount": "source=${localWorkspaceFolder},target=/home/vscode/workspace/${localWorkspaceFolderBasename},type=bind,consistency=cached",
28+
"containerUser": "ubuntu",
29+
// "remoteUser": "ubuntu",
4030

41-
// Use 'postCreateCommand' to run commands after the container is created.
42-
// "postCreateCommand": "zsh ${containerWorkspaceFolder}/.config/scripts/post-create.sh",
43-
// "waitFor": "postCreateCommand",
31+
// Use 'postCreateCommand' to run commands after the container is created.
32+
"postCreateCommand": "/bin/bash -c '.config/scripts/post-create.sh'",
33+
"waitFor": "postCreateCommand",
4434

45-
"shutdownAction": "stopContainer",
35+
"shutdownAction": "stopContainer",
4636

47-
// Features to add to the dev container. More info: https://containers.dev/features.
48-
"features": {
49-
"ghcr.io/devcontainers/features/common-utils:2": {
50-
"username": "vscode",
51-
"configureZshAsDefaultShell": true
52-
},
53-
"ghcr.io/devcontainers/features/python:1": {
54-
"installTools": false,
55-
"version": "latest"
37+
// Features to add to the dev container. More info: https://containers.dev/features.
38+
"features": {
39+
"ghcr.io/devcontainers/features/common-utils:2": {
40+
"configureZshAsDefaultShell": true,
41+
"installOhMyZsh": false
42+
},
43+
"ghcr.io/devcontainers/features/python:1": {
44+
"installTools": false,
45+
"version": "latest"
46+
},
47+
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
5648
},
57-
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
58-
"ghcr.io/withfig/features/fig:1": {}
59-
},
6049

61-
// Configure tool-specific properties.
62-
"customizations": {
63-
"vscode": {
64-
"extensions": [
65-
"ms-python.python",
66-
"ms-python.debugpy",
67-
"ms-python.vscode-pylance",
68-
"ms-python.vscode-python-envs",
69-
"ms-toolsai.jupyter",
70-
"charliermarsh.ruff",
71-
"esbenp.prettier-vscode",
72-
"tamasfe.even-better-toml",
73-
"IronGeek.vscode-env",
74-
"foxundermoon.shell-format"
75-
]
50+
// Configure tool-specific properties.
51+
"customizations": {
52+
"vscode": {
53+
"extensions": [
54+
"ms-python.python",
55+
"ms-python.debugpy",
56+
"ms-python.vscode-pylance",
57+
"ms-toolsai.jupyter",
58+
"charliermarsh.ruff",
59+
"esbenp.prettier-vscode",
60+
"tamasfe.even-better-toml",
61+
"foxundermoon.shell-format"
62+
]
63+
}
7664
}
77-
}
7865

79-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
80-
// "forwardPorts": [9000],
66+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
67+
// "forwardPorts": [9000],
8168

82-
// Use 'portsAttributes' to set default properties for specific forwarded ports.
83-
// More info: https://containers.dev/implementors/json_reference/#port-attributes
84-
// "portsAttributes": {
85-
// "9000": {
86-
// "label": "Hello Remote World",
87-
// "onAutoForward": "notify"
88-
// }
89-
// },
69+
// Use 'portsAttributes' to set default properties for specific forwarded ports.
70+
// More info: https://containers.dev/implementors/json_reference/#port-attributes
71+
// "portsAttributes": {
72+
// "9000": {
73+
// "label": "Hello Remote World",
74+
// "onAutoForward": "notify"
75+
// }
76+
// },
9077

91-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
92-
// "remoteUser": "root"
78+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
79+
// "remoteUser": "root"
9380
}

.vscode/extensions.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 7 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,4 @@
11
{
2-
// ::: Editor :::
3-
4-
"editor.rulers": [
5-
80,
6-
100,
7-
120
8-
],
9-
10-
"editor.formatOnSave": true,
11-
"editor.formatOnPaste": true,
12-
"editor.formatOnType": true,
13-
14-
// ## IntelliSense settings
15-
"editor.suggest.showWords": false,
16-
"editor.snippetSuggestions": "bottom",
17-
"editor.acceptSuggestionOnEnter": "smart",
18-
19-
// ## Visuality settings
20-
"editor.stickyScroll.enabled": false,
21-
"editor.smoothScrolling": true,
22-
"editor.cursorBlinking": "phase",
23-
"editor.cursorSmoothCaretAnimation": "on",
24-
"editor.minimap.enabled": false,
25-
"editor.renderWhitespace": "trailing",
26-
"editor.inlayHints.enabled": "offUnlessPressed",
27-
28-
// ## Accessibility settings
29-
"editor.linkedEditing": true,
30-
"editor.dragAndDrop": false,
31-
"editor.emptySelectionClipboard": false,
32-
33-
"editor.find.cursorMoveOnType": false,
34-
"editor.find.autoFindInSelection": "multiline",
35-
36-
"files.insertFinalNewline": true,
37-
38-
"workbench.editorLargeFileConfirmation": 1500,
39-
402
// ::: Language :::
413

424
/* #region //## Python */
@@ -56,17 +18,8 @@
5618
"python.analysis.autoFormatStrings": true,
5719
"python.analysis.autoImportCompletions": true,
5820

59-
"python.analysis.typeCheckingMode": "basic",
60-
"python.analysis.useLibraryCodeForTypes": true,
6121
"python.analysis.diagnosticMode": "workspace",
6222

63-
// "files.exclude": {
64-
// "**/__pycache__": true,
65-
// "**/.coverage": true,
66-
// "**/.coverage.*": true,
67-
// "**/.pytest_cache": true
68-
// },
69-
7023
"python.testing.cwd": "${workspaceFolder}/src",
7124
"python.testing.pytestArgs": [
7225
".", // python.testing.cwd
@@ -100,12 +53,6 @@
10053
"source.organizeImports": "always"
10154
}
10255
},
103-
"ruff.format.args": [
104-
"--config=.config/ruff.toml"
105-
],
106-
"ruff.lint.args": [
107-
"--config=.config/ruff.toml"
108-
],
10956

11057
"[toml]": {
11158
"editor.defaultFormatter": "tamasfe.even-better-toml"
@@ -121,27 +68,19 @@
12168
"cSpell.advanced.feature.useReferenceProviderWithRename": true,
12269
"cSpell.advanced.feature.useReferenceProviderRemove": "/^#+\\s/"
12370
},
124-
"markdown.styles": [
125-
".config/extras/github-markdown.css"
126-
],
71+
"markdown.styles": [".config/extras/github-markdown.css"],
12772
// "markdown.preview.scrollEditorWithPreview": false,
12873
// "markdown.preview.scrollPreviewWithEditor": false,
12974

13075
"markdownlint.config": {
131-
"MD033": false, // no-inline-html
132-
"MD034": false, // no-bare-urls
133-
"MD041": false, // first-line-heading
134-
"MD012": {
135-
// no-multiple-blanks
76+
"no-inline-html": false,
77+
"no-bare-urls": false,
78+
"first-line-heading": false,
79+
"no-empty-links": false,
80+
"no-alt-text": false,
81+
"no-multiple-blanks": {
13682
"maximum": 3
13783
}
138-
},
139-
"markdownlint.ignore": [
140-
"LICENSE"
141-
],
142-
143-
"[env]": {
144-
"editor.defaultFormatter": "IronGeek.vscode-env"
14584
}
14685

14786
/* #endregion */

0 commit comments

Comments
 (0)