-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
53 lines (48 loc) · 1.54 KB
/
Taskfile.yml
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
version: '3'
vars:
proj_name: mooxe-docker
tasks:
default:
cmds:
- echo 'Hello World from Task!'
silent: true
coder-old:
cmds:
- install -d $HOME/.coder/config/extensions
- install -d $HOME/.local/share/fonts
# -e PASSWORD=netserver
# -e PUID=1000
# -e PGID=1000
# --userns=auto
# --security-opt label=disable
# -u 1000:1000
# --uidmap 0:1000:10999
# --gidmap 0:1000:10999
- docker run
--rm
--name=code-server
-e PUID=1000
-e PGID=1000
--privileged=true
-e SUDO_PASSWORD=netserver
-p 8443:8443
-v $HOME/.coder/config/extensions:/config/extensions:Z
-v $HOME/.local/share/fonts:/config/.local/share/fonts:Z
-v $HOME/.gitconfig:/config/.gitconfig:Z
-v $HOME/.local/bin/hx:/usr/local/bin/hx:Z
-v $(pwd):/config/workspace/{{.proj_name}}:Z
-v $(pwd)/.vscode:/config/workspace/.vscode:Z
linuxserver/code-server
coder:
cmds:
- podman run
-ti --rm
--name=code-server
-p 8456:8456
-v ~/.coder/config/extensions:/root/.local/share/code-server/extensions:Z
-v ~/.local/share/fonts:/root/.local/share/fonts:Z
-v ~/.gitconfig:/root/.gitconfig:Z
-v ~/.local/bin/hx:/usr/local/bin/hx:Z
-v $(pwd):/root/WorkSpace/{{.proj_name}}:Z
-v $(pwd)/.vscode:/root/WorkSpace/.vscode:Z
mooxe/apt_coder