Skip to content

Commit 0222466

Browse files
authored
Merge pull request axolotl-ai-cloud#283 from OpenAccess-AI-Collective/docker-git-fetch
git fetch fix for docker
2 parents 6f16c45 + f162f3c commit 0222466

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: docker/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ RUN cd axolotl && \
2222
pip install -e .; \
2323
fi
2424

25+
# fix so that git fetch/pull from remote works
26+
RUN git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
27+
git config --get remote.origin.fetch
28+
2529
# helper for huggingface-login cli
2630
RUN git config --global credential.helper store

Diff for: docker/Dockerfile-runpod

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
ARG BASE_TAG=main
22
FROM winglian/axolotl:$BASE_TAG
33

4+
ENV HF_DATASETS_CACHE="/workspace/data/huggingface-cache/datasets"
5+
ENV HUGGINGFACE_HUB_CACHE="/workspace/data/huggingface-cache/hub"
6+
ENV TRANSFORMERS_CACHE="/workspace/data/huggingface-cache/hub"
7+
48
COPY scripts/runpod-entrypoint.sh /root/runpod-entrypoint.sh
59

610
RUN apt install --yes --no-install-recommends openssh-server tmux && \

0 commit comments

Comments
 (0)