From e6f2e56bf6c31d7675081e9cd9afa264cf5256a4 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 12 Feb 2024 15:24:17 -0800 Subject: [PATCH] Docker intiialize with git init so we can run submodule command --- scripts/Dockerfile.manager | 2 ++ scripts/Dockerfile.server | 2 ++ scripts/Dockerfile.worker | 3 +++ 3 files changed, 7 insertions(+) diff --git a/scripts/Dockerfile.manager b/scripts/Dockerfile.manager index 8e9e56e1a3..96782f0548 100644 --- a/scripts/Dockerfile.manager +++ b/scripts/Dockerfile.manager @@ -6,6 +6,8 @@ COPY ./.gitmodules /app/.gitmodules COPY . /app WORKDIR /app +# make this folder into a git repository so we can install submodules +RUN git init # Configure git to use the token RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" diff --git a/scripts/Dockerfile.server b/scripts/Dockerfile.server index 385d96fc76..2036d7d76b 100644 --- a/scripts/Dockerfile.server +++ b/scripts/Dockerfile.server @@ -6,6 +6,8 @@ COPY ./.gitmodules /app/.gitmodules COPY . /app WORKDIR /app +# make this folder into a git repository so we can install submodules +RUN git init # Configure git to use the token RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" diff --git a/scripts/Dockerfile.worker b/scripts/Dockerfile.worker index e49080a393..4d41855820 100644 --- a/scripts/Dockerfile.worker +++ b/scripts/Dockerfile.worker @@ -6,6 +6,9 @@ COPY ./.gitmodules /app/.gitmodules COPY . /app WORKDIR /app +# make this folder into a git repository so we can install submodules +RUN git init + # Configure git to use the token RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"