Skip to content

Commit 4996169

Browse files
author
Max Gravitt
committed
Merge branch 'develop' of github.com:hashed-io/hashed-substrate into develop
2 parents 4b12eed + 722d51c commit 4996169

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

collator.Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
FROM paritytech/ci-linux:production
22

3-
WORKDIR /var/www
4-
# TODO: have this dockerfile pull the hashed-substrate repo
5-
COPY . ./hashed-substrate
6-
7-
WORKDIR /var/www/hashed-substrate
83
# this dir doesnt exists but zombienet script tries to create a file within
94
RUN mkdir /cfg
105

11-
RUN cargo build --release
6+
WORKDIR /var/www
7+
8+
RUN git clone https://github.com/hashed-io/hashed-substrate.git
9+
10+
WORKDIR /var/www/hashed-substrate
11+
# change to main or develop
12+
RUN git checkout develop && cargo build --release
1213

1314
EXPOSE 30333 40333 9933 9944 9946
1415

@@ -17,5 +18,5 @@ RUN mv /var/www/hashed-substrate/target/release/hashed-parachain /usr/local/bin
1718

1819
# check if executable works in this container
1920
RUN /usr/local/bin/hashed-parachain --version
20-
21+
# ENTRYPOINT allows to add parameters/flags via k8 manifests
2122
ENTRYPOINT [ "hashed-parachain" ]

k8-manifests/zombienet-local.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[relaychain]
2+
default_image = "docker.io/parity/polkadot:v0.9.27"
3+
default_command = "polkadot"
4+
default_args = [ "-lparachain=debug" ]
5+
6+
chain = "rococo-local"
7+
8+
[[relaychain.nodes]]
9+
name = "alice"
10+
validator = true
11+
12+
[[relaychain.nodes]]
13+
name = "bob"
14+
validator = true
15+
16+
[[parachains]]
17+
id = 2000
18+
cumulus_based = true
19+
20+
[parachains.collator]
21+
name = "collator01"
22+
image = "docker.io/abhashed/test-collator"
23+
command = "hashed-parachain"

0 commit comments

Comments
 (0)