Skip to content

Commit d83e567

Browse files
committed
add dockerfile
1 parent 58e3fa1 commit d83e567

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

e2e/zombienet/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ARG NODE_VERSION=18.14.2
2+
3+
FROM node:${NODE_VERSION}
4+
WORKDIR /usr/typink
5+
COPY . .
6+
7+
WORKDIR /usr/bin
8+
RUN \
9+
curl -L -O https://github.com/paritytech/zombienet/releases/download/v1.3.116/zombienet-linux-x64 && chmod +x zombienet-linux-x64 \
10+
&& curl -L -O https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.14.1/polkadot && chmod +x polkadot \
11+
&& curl -L -O https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.14.1/polkadot-execute-worker && chmod +x polkadot-execute-worker \
12+
&& curl -L -O https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.14.1/polkadot-prepare-worker && chmod +x polkadot-prepare-worker \
13+
&& curl -L -O https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.14.1/polkadot-parachain && chmod +x polkadot-parachain
14+
15+
WORKDIR /usr/typink
16+
17+
# Expose necessary ports
18+
EXPOSE 9944
19+
EXPOSE 9933
20+
21+
# Set the default command to run zombienet
22+
CMD ["zombienet-linux-x64", "-p", "native", "spawn", "./e2e/zombienet/networks.json"]

e2e/zombienet/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "zombienet",
33
"author": "Thang Vu <thang@dedot.dev>",
44
"private": true,
5+
"type": "module",
56
"scripts": {
67
"e2e:test": "npx vitest --watch=false --no-file-parallelism"
78
},

0 commit comments

Comments
 (0)