2023-05-02 09:22:30 -07:00
|
|
|
FROM ghcr.io/wormhole-foundation/sui:1.0.0-testnet@sha256:63a8094590ddb90320aa1c86414f17cc73c759ecbdfaf2fe78f135b7c08ec536 as sui
|
2023-01-12 11:36:42 -08:00
|
|
|
|
2023-05-02 09:22:30 -07:00
|
|
|
RUN dnf -y install make git npm
|
2023-01-12 11:36:42 -08:00
|
|
|
|
2023-05-02 09:22:30 -07:00
|
|
|
COPY sui/README.md sui/cert.pem* /certs/
|
2023-01-12 11:36:42 -08:00
|
|
|
RUN if [ -e /certs/cert.pem ]; then cp /certs/cert.pem /etc/ssl/certs/ca-certificates.crt; fi
|
|
|
|
RUN if [ -e /certs/cert.pem ]; then git config --global http.sslCAInfo /certs/cert.pem; fi
|
|
|
|
|
2022-11-17 10:43:15 -08:00
|
|
|
RUN sui genesis -f
|
2023-01-12 11:36:42 -08:00
|
|
|
|
2023-05-02 09:22:30 -07:00
|
|
|
COPY sui/devnet/ /root/.sui/sui_config/
|
|
|
|
|
|
|
|
# Build CLI, TODO(aki): move this to base image before merging into main
|
|
|
|
RUN npm install -g n typescript ts-node
|
|
|
|
RUN n stable
|
|
|
|
COPY clients/js /tmp/clients/js
|
|
|
|
WORKDIR /tmp/clients/js
|
|
|
|
RUN make install
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
COPY sui/scripts/ scripts
|
|
|
|
COPY sui/wormhole/ wormhole
|
|
|
|
COPY sui/token_bridge/ token_bridge
|
|
|
|
COPY sui/examples/ examples
|
|
|
|
COPY sui/Makefile Makefile
|
|
|
|
COPY sui/.env* .
|
2023-01-12 11:36:42 -08:00
|
|
|
|
|
|
|
FROM sui AS tests
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2023-05-02 09:22:30 -07:00
|
|
|
RUN --mount=type=cache,target=/root/.move,id=move_cache make test
|