Skip to content

Commit

Permalink
remove stale comment, update all celo deps together
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmgdr committed Oct 31, 2023
1 parent 32fba91 commit 875af3c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ updates:
day: "monday"
interval: "weekly"
groups:
celo-dependencies:
patterns: ["^@celo/"]
development-dependencies:
dependency-type: "development"
update-types:
Expand Down
7 changes: 2 additions & 5 deletions dockerfiles/Dockerfile-combiner
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ COPY .yarn/releases/ .yarn/releases/
# Makes build fail if it doesn't copy git, will be removed after build
COPY .git .git

# Setting ONLY_PUBLISHED_DEPENDENCIES to true or any non-empty string results in only the
# phone-number-privacy package being copied into the image, and therefore it will only build using
# published dependencies. Setting ONLY_PUBLISHED_DEPENDENCIES to "" will copy in all dependecies.
ARG ONLY_PUBLISHED_DEPENDENCIES=""
ARG PACKAGE_SELECTOR=${ONLY_PUBLISHED_DEPENDENCIES:+combiner}
ARG PACKAGE_SELECTOR=combiner
# COMMENT OUT THIS LINE TO USE PUBLISHED DEPENDENCIES
COPY --from=packages celo-phone-number-privacy/packages/ packages/
COPY --from=packages celo-phone-number-privacy/apps/${PACKAGE_SELECTOR} apps/${PACKAGE_SELECTOR}

Expand Down
4 changes: 1 addition & 3 deletions dockerfiles/Dockerfile-loadtest
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ COPY .yarn/releases/ .yarn/releases/
# Makes build fail if it doesn't copy git, will be removed after build
COPY .git .git

# I dont get how this was supposed to work
ARG ONLY_PUBLISHED_DEPENDENCIES=""
ARG PACKAGE_SELECTOR=${ONLY_PUBLISHED_DEPENDENCIES:+apps/monitor}
ARG PACKAGE_SELECTOR=monitor
COPY --from=packages celo-phone-number-privacy/apps/${PACKAGE_SELECTOR} apps/${PACKAGE_SELECTOR}
# COMMENT OUT THIS LINE TO USE PUBLISHED DEPENDENCIES
COPY --from=packages celo-phone-number-privacy/packages packages
Expand Down
7 changes: 2 additions & 5 deletions dockerfiles/Dockerfile-signer
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ COPY .yarn/releases/ .yarn/releases/
# Makes build fail if it doesn't copy git, will be removed after build
COPY .git .git

# Setting ONLY_PUBLISHED_DEPENDENCIES to true or any non-empty string results in only the
# phone-number-privacy package being copied into the image, and therefore it will only build using
# published dependencies. Setting ONLY_PUBLISHED_DEPENDENCIES to "" will copy in all dependecies.
ARG ONLY_PUBLISHED_DEPENDENCIES=""
ARG PACKAGE_SELECTOR=${ONLY_PUBLISHED_DEPENDENCIES:+apps/signer}
ARG PACKAGE_SELECTOR=signer
COPY --from=packages celo-phone-number-privacy/apps/${PACKAGE_SELECTOR} apps/${PACKAGE_SELECTOR}
# COMMENT OUT THIS LINE TO USE PUBLISHED DEPENDENCIES
COPY --from=packages celo-phone-number-privacy/packages packages
# Install dependencies and build. need dev deps too so we can build (tsc)
RUN yarn install --network-timeout 100000 --inline-builds && yarn cache clean
Expand Down

0 comments on commit 875af3c

Please sign in to comment.