Docker environment support
This commit is contained in:
parent
312a9ba853
commit
17ec55da2a
|
@ -0,0 +1,5 @@
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
README.md
|
||||||
|
docker-compose.yml
|
||||||
|
Dockerfile
|
|
@ -0,0 +1,9 @@
|
||||||
|
FROM parity/parity:v1.11.11
|
||||||
|
|
||||||
|
WORKDIR /stuff
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN env PARITY=/parity/parity ./prepare-chain.sh
|
||||||
|
|
||||||
|
CMD ["--config", "classic_aura.toml", "--jsonrpc-interface", "all"]
|
16
README.md
16
README.md
|
@ -45,3 +45,19 @@ As soon as the block issuer configured, run the node with:
|
||||||
```shell
|
```shell
|
||||||
parity --config classic_aura.toml
|
parity --config classic_aura.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Run the docker container
|
||||||
|
|
||||||
|
The docker container can be used to integrate the local testnet in your testing environmnet. Please refer to example of [the Docker Compose configuration file](docker-compose.yml) for reference.
|
||||||
|
|
||||||
|
Prior to running the container, go to the bottom of [the genesis file](classic_aura.json) and add accounts that will have some _ether_ prefunded.
|
||||||
|
|
||||||
|
To try the docker container, invoke:
|
||||||
|
```shell
|
||||||
|
$ docker-compose up --build
|
||||||
|
```
|
||||||
|
|
||||||
|
To stop the container:
|
||||||
|
```shell
|
||||||
|
$ docker-compose down
|
||||||
|
```
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
version: "3.3"
|
||||||
|
services:
|
||||||
|
parity-classic:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "8545:8545"
|
Loading…
Reference in New Issue