Skip to content

Commit

Permalink
[docker] Copy Move module bytecodes into docker image so they can be …
Browse files Browse the repository at this point in the history
…used in genesis setup

The genesis process now needs to take the current set of Move modules as input. This PR
copies them into the Dockerfile to make it easy to do this.

Closes: aptos-labs#8765
  • Loading branch information
sblackshear authored and bors-libra committed Jul 26, 2021
1 parent 82cae51 commit 2c66c5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/init/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ RUN mkdir -p /opt/diem/bin
COPY --from=builder /diem/target/release/diem-genesis-tool /usr/local/bin
COPY --from=builder /diem/target/release/diem-operational-tool /usr/local/bin

### Get Move modules bytecodes for genesis ceremony
RUN mkdir -p /diem/move
COPY --from=builder /diem/language/diem-framework/releases/artifacts/current /diem/move

FROM pre-prod as testing

RUN /usr/local/bin/diem-genesis-tool -h
Expand Down
4 changes: 4 additions & 0 deletions docker/tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ COPY --from=builder /diem/target/release/db-restore /usr/local/bin
COPY --from=builder /diem/target/release/diem-transaction-replay /usr/local/bin
COPY --from=builder /diem/target/release/diem-writeset-generator /usr/local/bin

### Get Move modules bytecodes for genesis ceremony
RUN mkdir -p /diem/move
COPY --from=builder /diem/language/diem-framework/releases/artifacts/current /diem/move

ARG BUILD_DATE
ARG GIT_REV
ARG GIT_UPSTREAM
Expand Down

0 comments on commit 2c66c5e

Please sign in to comment.