fix symlinks for axolotl outputs (#1625)

This commit is contained in:
Wing Lian
2024-05-15 19:41:45 -04:00
committed by GitHub
parent 039e2a0370
commit e6937e884b
3 changed files with 8 additions and 4 deletions

View File

@@ -21,9 +21,7 @@ RUN apt install --yes --no-install-recommends openssh-server tmux && \
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 && \
mkdir -p /workspace/data/axolotl-artifacts && \
ln -sf /workspace/data/axolotl-artifacts /workspace/axolotl/outputs
chmod +x /root/cloud-entrypoint.sh
ENTRYPOINT ["/root/cloud-entrypoint.sh"]
CMD ["sleep", "infinity"]

1
outputs/.gitignore vendored
View File

@@ -1 +0,0 @@
*

View File

@@ -36,5 +36,12 @@ if [ "$JUPYTER_DISABLE" != "1" ]; then
jupyter lab --port=8888 --ip=* --allow-root --ServerApp.allow_origin=* &
fi
if [ ! -d "/workspace/data/axolotl-artifacts" ]; then
mkdir -p /workspace/data/axolotl-artifacts
fi
if [ ! -L "/workspace/axolotl/outputs" ]; then
ln -sf /workspace/data/axolotl-artifacts /workspace/axolotl/outputs
fi
# Execute the passed arguments (CMD)
exec "$@"