diff --git a/docker/Dockerfile-cloud b/docker/Dockerfile-cloud index 36439ff616..69ce143bb2 100644 --- a/docker/Dockerfile-cloud +++ b/docker/Dockerfile-cloud @@ -11,6 +11,7 @@ EXPOSE 8888 EXPOSE 22 COPY scripts/cloud-entrypoint.sh /root/cloud-entrypoint.sh +COPY scripts/motd /etc/motd RUN pip install jupyterlab notebook ipywidgets && \ jupyter lab clean @@ -18,6 +19,7 @@ RUN apt install --yes --no-install-recommends openssh-server tmux && \ mkdir -p ~/.ssh && \ chmod 700 ~/.ssh && \ 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 /root/cloud-entrypoint.sh diff --git a/scripts/motd b/scripts/motd new file mode 100644 index 0000000000..060a5c5c6c --- /dev/null +++ b/scripts/motd @@ -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 . +```