Docker environment support

This commit is contained in:
Alexander Kolotov 2019-03-19 13:44:23 +03:00
parent 312a9ba853
commit 17ec55da2a
4 changed files with 37 additions and 1 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.git
.gitignore
README.md
docker-compose.yml
Dockerfile

9
Dockerfile Normal file
View File

@ -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"]

View File

@ -44,4 +44,20 @@ As soon as the block issuer configured, run the node with:
```shell
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
```

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
version: "3.3"
services:
parity-classic:
build: .
ports:
- "8545:8545"