-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh.tmp
More file actions
executable file
·39 lines (35 loc) · 978 Bytes
/
run.sh.tmp
File metadata and controls
executable file
·39 lines (35 loc) · 978 Bytes
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
#!/usr/bin/env bash
BASEPATH=`dirname $(readlink -f ${BASH_SOURCE[0]})` && cd $BASEPATH
name="ai"
docker rm -f ${name}
## dufs file
# -p 5000:5000 \
## terminal
# -p 2222:2222 \
## cc-switch
# -p 7700:7700 \
## jupyter
# -p 8000:8000 \
## env
# -e TERMINAL_USER="admin"
# -e TERMINAL_PASSWORD="123123"
# -e TERMINAL_PROXY=socks5://localhost:1080 \
# -e UV_DEFAULT_INDEX=https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple \
! ls .gitconfig &> /dev/null && touch .gitconfig
docker run -itd \
--restart=always \
--privileged \
-p 5000:5000 \
-p 2222:2222 \
-p 7700:7700 \
-p 8000:8000 \
-v ${PWD}/.cc-switch:/root/.cc-switch \
-v ${PWD}/.cursor:/root/.cursor \
-v ${PWD}/.gemini:/root/.gemini \
-v ${PWD}/.claude:/root/.claude \
-v ${PWD}/.codex:/root/.codex \
-v ${PWD}/.opencode:/root/.opencode \
-v ${PWD}/.jupyter:/root/.jupyter \
-v ${PWD}/.gitconfig:/root/.gitconfig \
-v /root/.ssh:/root/.ssh \
--name ${name} fullnode/remote-ai:latest