Add script and dockerfile to build an injected docker image for the polkadot-collator binary (#591)

* remove exec flag on json file
* fix dockerignore filter to allow building the injected docker image
* Update docker/injected.Dockerfile
* Update docker/scripts/build-injected-image.sh

Co-authored-by: Martin Pugh <pugh@s3kr.it>
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>
This commit is contained in:
Chevdor
2021-09-03 15:30:12 +02:00
committed by GitHub
parent e3e6855490
commit d260b0e14f
6 changed files with 71 additions and 1 deletions
+14
View File
@@ -121,3 +121,17 @@ cargo build --release
```
### Register the parachain
![image](https://user-images.githubusercontent.com/2915325/99548884-1be13580-2987-11eb-9a8b-20be658d34f9.png)
## Build the docker image
After building `polkadot-collator` with cargo as documented in [this chapter](#build--launch-rococo-collators), the following will allow producting a new docker image where the compiled binary is injected:
```
./docker/scripts/build-injected-image.sh
```
You may then start a new contaier:
```
docker run --rm -it $OWNER/$IMAGE_NAME --collator --tmp --parachain-id 1000 --execution wasm --chain /specs/westmint.json
```