fix symlinks for axolotl outputs (#1625)
This commit is contained in:
@@ -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 "\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 && \
|
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
|
||||||
mkdir -p /workspace/data/axolotl-artifacts && \
|
|
||||||
ln -sf /workspace/data/axolotl-artifacts /workspace/axolotl/outputs
|
|
||||||
|
|
||||||
ENTRYPOINT ["/root/cloud-entrypoint.sh"]
|
ENTRYPOINT ["/root/cloud-entrypoint.sh"]
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
||||||
|
|||||||
1
outputs/.gitignore
vendored
1
outputs/.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
*
|
|
||||||
@@ -36,5 +36,12 @@ if [ "$JUPYTER_DISABLE" != "1" ]; then
|
|||||||
jupyter lab --port=8888 --ip=* --allow-root --ServerApp.allow_origin=* &
|
jupyter lab --port=8888 --ip=* --allow-root --ServerApp.allow_origin=* &
|
||||||
fi
|
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)
|
# Execute the passed arguments (CMD)
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user