add a helpful motd for cloud image (#1235) [skip ci]
This commit is contained in:
@@ -11,6 +11,7 @@ EXPOSE 8888
|
|||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
||||||
COPY scripts/cloud-entrypoint.sh /root/cloud-entrypoint.sh
|
COPY scripts/cloud-entrypoint.sh /root/cloud-entrypoint.sh
|
||||||
|
COPY scripts/motd /etc/motd
|
||||||
|
|
||||||
RUN pip install jupyterlab notebook ipywidgets && \
|
RUN pip install jupyterlab notebook ipywidgets && \
|
||||||
jupyter lab clean
|
jupyter lab clean
|
||||||
@@ -18,6 +19,7 @@ RUN apt install --yes --no-install-recommends openssh-server tmux && \
|
|||||||
mkdir -p ~/.ssh && \
|
mkdir -p ~/.ssh && \
|
||||||
chmod 700 ~/.ssh && \
|
chmod 700 ~/.ssh && \
|
||||||
printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \
|
printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \
|
||||||
|
printf "[ ! -z \"\$TERM\" -a -r /etc/motd ] && cat /etc/motd\n" >> ~/.bashrc && \
|
||||||
chmod +x /workspace/axolotl/scripts/cloud-entrypoint.sh && \
|
chmod +x /workspace/axolotl/scripts/cloud-entrypoint.sh && \
|
||||||
chmod +x /root/cloud-entrypoint.sh
|
chmod +x /root/cloud-entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
17
scripts/motd
Normal file
17
scripts/motd
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
dP dP dP
|
||||||
|
88 88 88
|
||||||
|
.d8888b. dP. .dP .d8888b. 88 .d8888b. d8888P 88
|
||||||
|
88' `88 `8bd8' 88' `88 88 88' `88 88 88
|
||||||
|
88. .88 .d88b. 88. .88 88 88. .88 88 88
|
||||||
|
`88888P8 dP' `dP `88888P' dP `88888P' dP dP
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd /workspace
|
||||||
|
rm -rf /workspace/axolotl
|
||||||
|
git clone https://github.com/OpenAccess-AI-Collective/axolotl.git
|
||||||
|
cd axolotl
|
||||||
|
pip install --no-deps -e .
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user