Skip to content

Commit

Permalink
Download runtime cache instead of creating new one
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsa committed May 20, 2024
1 parent ac6c241 commit 5cd5045
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions zombienet/docker/tester.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ FROM qdrvm/kagome:latest as kagome
FROM qdrvm/zombie-builder:$POLKADOT_SDK_RELEASE AS tester
COPY --from=kagome /usr/local/bin/kagome /home/nonroot/bin
RUN git clone https://github.com/qdrvm/kagome.git -b test/polkadot-functional-zombietests

# TODO(kamilsa): #2099 Remove this once we have a proper way to precompile
RUN mkdir /tmp/kagome/
RUN wget --no-check-certificate 'https://drive.usercontent.google.com/uc?id=1HlZ581MfFH9xtIXCj20NyUuDAC5Ip4CN&export=download&confirm=yes' -O /tmp/runtime_cache.zip
RUN apt update && apt install -y unzip
RUN unzip /tmp/runtime_cache.zip -d /tmp/kagome/
RUN rm /tmp/runtime_cache.zip

RUN mkdir /home/nonroot/.local && \
chown nonroot:nonroot /home/nonroot/.local && \
chown nonroot:nonroot /tmp
USER nonroot
#CMD zombienet-linux-x64 test -p native kagome/zombienet/0001-parachains-smoke-test/0001-parachains-smoke-test.zndsl && \
# zombienet-linux-x64 test -p native kagome/zombienet/0002-parachains-upgrade-smoke-tests/0002-parachains-upgrade-smoke-test.zndsl && \
# zombienet-linux-x64 test -p native kagome/zombienet/0003-parachains-smoke-test-cumulus/0003-parachains-smoke-test-cumulus.zndsl


# Prepare runtimes
RUN mkdir /tmp/chain-specs
RUN polkadot build-spec --chain rococo-local --raw > /tmp/chain-specs/rococo-local.raw
RUN polkadot build-spec --chain westend-local --raw > /tmp/chain-specs/westend-local.raw
# TODO(kamilsa) #2099: replace kagome launch with timeout below with precompile command
RUN timeout 10m kagome --chain /tmp/chain-specs/rococo-local.raw --tmp --validator --wasm-execution Compiled || echo "kagome command timed out"
RUN timeout 10m kagome --chain /tmp/chain-specs/westend-local.raw --tmp --validator --wasm-execution Compiled || echo "kagome command timed out"

0 comments on commit 5cd5045

Please sign in to comment.