Skip to content

Commit

Permalink
One more attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Feb 12, 2024
1 parent 2c98627 commit d687516
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ bruno-requests
tmp
apps/docs
apps/client
packages/client
packages/client
portal
.git
.gitmodules
7 changes: 3 additions & 4 deletions scripts/Dockerfile.manager
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
FROM magickml/magick:latest

ARG GITHUB_TOKEN
ARG PORTAL_BRANCH=main

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/"
RUN git submodule add -b ${SUBMODULE_BRANCH} https://${GITHUB_TOKEN}@github.com/oneirocom/portal.git ./portal/cloud

RUN git submodule add -b ${PORTAL_BRANCH} https://${GITHUB_TOKEN}@github.com/oneirocom/portal.git portal/cloud

# Clone the submodule
RUN git submodule update --init --recursive
RUN git submodule update --init --recursive portal/cloud

RUN poetry install --no-interaction --no-ansi -vvv
# RUN poetry install --no-root
Expand Down
5 changes: 2 additions & 3 deletions scripts/Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ WORKDIR /app
RUN git init
# Configure git to use the token
RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
RUN git submodule add -b ${SUBMODULE_BRANCH} https://${GITHUB_TOKEN}@github.com/oneirocom/portal.git ./portal/cloud

RUN git submodule add -b ${PORTAL_BRANCH} https://${GITHUB_TOKEN}@github.com/oneirocom/portal.git portal/cloud

# Clone the submodule
RUN git submodule update --init --recursive
RUN git submodule update --init --recursive portal/cloud

RUN poetry install --no-interaction --no-ansi -vvv
# RUN poetry install --no-root
Expand Down
4 changes: 2 additions & 2 deletions scripts/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ RUN git init

# Configure git to use the token
RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
RUN git submodule add -b ${SUBMODULE_BRANCH} https://${GITHUB_TOKEN}@github.com/oneirocom/portal.git ./portal/cloud
RUN git submodule add -b ${PORTAL_BRANCH} https://${GITHUB_TOKEN}@github.com/oneirocom/portal.git portal/cloud

# Clone the submodule
RUN git submodule update --init --recursive
RUN git submodule update --init --recursive portal/cloud

RUN poetry install --no-interaction --no-ansi -vvv
# RUN poetry install --no-root
Expand Down

0 comments on commit d687516

Please sign in to comment.