From add3e5076ba6f55b8abb3a86287f4b532b839805 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Sun, 27 Jul 2025 17:04:27 -0400 Subject: [PATCH] don't publish to netlify on contributor submissions since it requires auth tokens (#2985) [skip ci] * don't publish to netlify on contributor submissions since it requires auth tokens * fix no-tmux build and add contact to motd --- .github/workflows/preview-docs.yml | 3 ++- docker/Dockerfile-cloud-no-tmux | 8 +++++--- scripts/motd | 2 ++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index 162665ed5..2393c3d4c 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -53,6 +53,7 @@ jobs: - name: Netlify Publish uses: nwtgck/actions-netlify@v3.0 + if: ${{ secrets.NETLIFY_AUTH_TOKEN != '' }} id: netlify with: publish-dir: './_site' @@ -67,7 +68,7 @@ jobs: NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - name: Update PR with preview link - if: ${{ steps.netlify.outcome == 'success' }} + if: ${{ steps.netlify.outcome == 'success' && secrets.NETLIFY_AUTH_TOKEN != '' }} uses: marocchino/sticky-pull-request-comment@v2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docker/Dockerfile-cloud-no-tmux b/docker/Dockerfile-cloud-no-tmux index 165063105..594559cfd 100644 --- a/docker/Dockerfile-cloud-no-tmux +++ b/docker/Dockerfile-cloud-no-tmux @@ -9,13 +9,15 @@ ENV HF_HUB_ENABLE_HF_TRANSFER="1" EXPOSE 8888 EXPOSE 22 -COPY scripts/cloud-entrypoint-term.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 && \ jupyter lab clean -RUN apt install --yes --no-install-recommends openssh-server tmux sudo && \ - pip3 install -U --no-cache-dir grpcio ray[default]==2.9.3 && \ +RUN apt update && \ + apt install --yes --no-install-recommends openssh-server tmux iproute2 nvtop ibverbs-providers ibverbs-utils infiniband-diags librdmacm-dev librdmacm1 rdmacm-utils slurm-wlm && \ + rm -rf /var/cache/apt/archives && \ + rm -rf /var/lib/apt/lists/* && \ mkdir -p ~/.ssh && \ chmod 700 ~/.ssh && \ printf "[ ! -z \"\$TERM\" -a -r /etc/motd ] && cat /etc/motd\n" >> ~/.bashrc && \ diff --git a/scripts/motd b/scripts/motd index f842bd076..275a4fcba 100644 --- a/scripts/motd +++ b/scripts/motd @@ -13,6 +13,8 @@ Welcome to the axolotl cloud image! If the you've mounted a disk to /workspace and the axolotl directory is empty, run the following commands: +Need help with your post-training workloads? Reach out us at contact@axolotl.ai for assistance. + ``` cd /workspace rm -rf /workspace/axolotl