Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Aug 27, 2024
1 parent 99e6686 commit cc11fba
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/deployment/Dockerfile.sdk
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,26 @@ RUN set -eux; \
FROM node:18-bullseye AS cosmos-package
ENV YARN_GLOBAL_FOLDER=/root/.yarn

WORKDIR /usr/src/agoric-sdk/
COPY --link .yarnrc.yml package.json yarn.lock /usr/src/agoric-sdk/

WORKDIR /usr/src/agoric-sdk/golang/cosmos
COPY --from=cosmos-go --link /usr/src/agoric-sdk/golang/cosmos .
COPY --link scripts /usr/src/agoric-sdk/scripts

RUN corepack enable
RUN echo unknown > git-revision.txt

COPY --link .yarnrc.yml package.json yarn.lock //usr/src/agoric-sdk/
# At this point there is nothing in the Yarn cache
# Don't prevent mutation because the other @agoric packages aren't available in this stage
# XXX until https://github.com/Agoric/agoric-sdk/issues/9043, then just:
# RUN yarn install --immutable
RUN bash -c \
"for i in {1..3}; do yarn install --network-timeout 1000000 && exit 0 || (echo retrying; sleep 15;) done; exit 1"
RUN yarn install
# RUN bash -c \
# "for i in {1..3}; do yarn install --network-timeout 1000000 && exit 0 || (echo retrying; sleep 15;) done; exit 1"
RUN yarn build:gyp

# Remove dev dependencies.
WORKDIR /usr/src/agoric-sdk/
RUN git diff yarn.lock
RUN mkdir golang/tmp && \
mv golang/cosmos/package.json golang/cosmos/build golang/cosmos/index.cjs golang/tmp/ && \
rm -rf golang/cosmos && mv golang/tmp golang/cosmos
Expand Down

0 comments on commit cc11fba

Please sign in to comment.