Skip to content

Commit

Permalink
Docker intiialize with git init so we can run submodule command
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Feb 12, 2024
1 parent 6c7e1bc commit e6f2e56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/Dockerfile.manager
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

Expand Down
2 changes: 2 additions & 0 deletions scripts/Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

Expand Down
3 changes: 3 additions & 0 deletions scripts/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

Expand Down

0 comments on commit e6f2e56

Please sign in to comment.