This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bernhard-malus-fx' of github.com:paritytech/polkadot in…
…to bernhard-malus-fx
- Loading branch information
Showing
8 changed files
with
69 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,39 +6,39 @@ ARG BUILD_DATE | |
ARG IMAGE_NAME | ||
|
||
LABEL io.parity.image.authors="[email protected]" \ | ||
io.parity.image.vendor="Parity Technologies" \ | ||
io.parity.image.title="${IMAGE_NAME}" \ | ||
io.parity.image.description="polkadot: a platform for web3" \ | ||
io.parity.image.source="https://github.com/paritytech/polkadot/blob/${VCS_REF}/scripts/docker/malus.Dockerfile" \ | ||
io.parity.image.revision="${VCS_REF}" \ | ||
io.parity.image.created="${BUILD_DATE}" \ | ||
io.parity.image.documentation="https://github.com/paritytech/polkadot/" | ||
io.parity.image.vendor="Parity Technologies" \ | ||
io.parity.image.title="${IMAGE_NAME}" \ | ||
io.parity.image.description="polkadot: a platform for web3" \ | ||
io.parity.image.source="https://github.com/paritytech/polkadot/blob/${VCS_REF}/scripts/docker/malus.Dockerfile" \ | ||
io.parity.image.revision="${VCS_REF}" \ | ||
io.parity.image.created="${BUILD_DATE}" \ | ||
io.parity.image.documentation="https://github.com/paritytech/polkadot/" | ||
|
||
# show backtraces | ||
ENV RUST_BACKTRACE 1 | ||
|
||
# install tools and dependencies | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
ca-certificates \ | ||
curl \ | ||
libssl1.1 \ | ||
tini && \ | ||
# apt cleanup | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
find /var/lib/apt/lists/ -type f -not -name lock -delete; \ | ||
# add user | ||
groupadd --gid 10000 nonroot && \ | ||
useradd --home-dir /home/nonroot \ | ||
--create-home \ | ||
--shell /bin/bash \ | ||
--gid nonroot \ | ||
--groups nonroot \ | ||
--uid 10000 nonroot | ||
|
||
|
||
# add adder-collator binary to docker image | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
find /var/lib/apt/lists/ -type f -not -name lock -delete; \ | ||
# add user | ||
groupadd --gid 10000 nonroot && \ | ||
useradd --home-dir /home/nonroot \ | ||
--create-home \ | ||
--shell /bin/bash \ | ||
--gid nonroot \ | ||
--groups nonroot \ | ||
--uid 10000 nonroot | ||
|
||
|
||
# add malus binaries to the docker image | ||
COPY ./malus-dispute-ancestor /usr/local/bin | ||
COPY ./malus-suggest-garbage-candidate /usr/local/bin | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
node/malus/integrationtests/0002-dispute-invalid-block.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
[settings.defaults] | ||
image = "parity/polkadot" | ||
image = "{{get_env(name="SYNTHIMAGE") | safe }}" | ||
command = "polkadot" | ||
chain-name = "polkadot-local" | ||
timeout = 1000 | ||
|
||
[nodes.alice] | ||
validator = true | ||
extra-args = ["--alice"] | ||
image = "parity/polkadot" | ||
image = "{{get_env(name="SYNTHIMAGE") | safe }}" | ||
command = "polkadot" | ||
|
||
[nodes.bob] | ||
validator = true | ||
extra-args = ["--bob"] | ||
image = "parity/polkadot" | ||
command = "/usr/local/bin/malus-back-garbage-block" | ||
image = "{{get_env(name="MALUSIMAGE") | safe }}" | ||
command = "/usr/local/bin/malus-back-garbage-candidate" | ||
|
||
[nodes.charlie] | ||
validator = true | ||
extra-args = ["--charlie"] | ||
image = "parity/polkadot" | ||
command = "/usr/local/bin/malus-back-garbage-block" | ||
image = "{{get_env(name="MALUSIMAGE") | safe }}" | ||
command = "/usr/local/bin/malus-back-garbage-candidate" | ||
|
||
[nodes.david] | ||
validator = true | ||
extra-args = ["--dave"] | ||
image = "paritypr/malus" | ||
command = "/usr/local/bin/malus-back-garbage-block" | ||
image = "{{get_env(name="MALUSIMAGE") | safe }}" | ||
command = "/usr/local/bin/malus-back-garbage-candidate" | ||
|
||
[nodes.eve] | ||
validator = true | ||
extra-args = ["--eve"] | ||
image = "paritypr/malus" | ||
command = "/usr/local/bin/malus-suggest-garbage-block" | ||
image = "{{get_env(name="MALUSIMAGE") | safe }}" | ||
command = "/usr/local/bin/malus-suggest-garbage-candidate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters