add a helpful motd for cloud image (#1235) [skip ci]
Browse files- docker/Dockerfile-cloud +2 -0
- scripts/motd +17 -0
docker/Dockerfile-cloud
CHANGED
@@ -11,6 +11,7 @@ EXPOSE 8888
|
|
11 |
EXPOSE 22
|
12 |
|
13 |
COPY scripts/cloud-entrypoint.sh /root/cloud-entrypoint.sh
|
|
|
14 |
|
15 |
RUN pip install jupyterlab notebook ipywidgets && \
|
16 |
jupyter lab clean
|
@@ -18,6 +19,7 @@ RUN apt install --yes --no-install-recommends openssh-server tmux && \
|
|
18 |
mkdir -p ~/.ssh && \
|
19 |
chmod 700 ~/.ssh && \
|
20 |
printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \
|
|
|
21 |
chmod +x /workspace/axolotl/scripts/cloud-entrypoint.sh && \
|
22 |
chmod +x /root/cloud-entrypoint.sh
|
23 |
|
|
|
11 |
EXPOSE 22
|
12 |
|
13 |
COPY scripts/cloud-entrypoint.sh /root/cloud-entrypoint.sh
|
14 |
+
COPY scripts/motd /etc/motd
|
15 |
|
16 |
RUN pip install jupyterlab notebook ipywidgets && \
|
17 |
jupyter lab clean
|
|
|
19 |
mkdir -p ~/.ssh && \
|
20 |
chmod 700 ~/.ssh && \
|
21 |
printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \
|
22 |
+
printf "[ ! -z \"\$TERM\" -a -r /etc/motd ] && cat /etc/motd\n" >> ~/.bashrc && \
|
23 |
chmod +x /workspace/axolotl/scripts/cloud-entrypoint.sh && \
|
24 |
chmod +x /root/cloud-entrypoint.sh
|
25 |
|
scripts/motd
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
dP dP dP
|
3 |
+
88 88 88
|
4 |
+
.d8888b. dP. .dP .d8888b. 88 .d8888b. d8888P 88
|
5 |
+
88' `88 `8bd8' 88' `88 88 88' `88 88 88
|
6 |
+
88. .88 .d88b. 88. .88 88 88. .88 88 88
|
7 |
+
`88888P8 dP' `dP `88888P' dP `88888P' dP dP
|
8 |
+
|
9 |
+
Welcome to the axolotl cloud image! If the you've mounted a disk to /workspace and the axolotl directory ie empty, run the following commands:
|
10 |
+
|
11 |
+
```
|
12 |
+
cd /workspace
|
13 |
+
rm -rf /workspace/axolotl
|
14 |
+
git clone https://github.com/OpenAccess-AI-Collective/axolotl.git
|
15 |
+
cd axolotl
|
16 |
+
pip install --no-deps -e .
|
17 |
+
```
|