Following are the steps to publish the Docker image.
-
Copy
Dockerfile
and startup.sh in docker directorydocker/Dockerfile
docker/startup.sh
-
Create the following directories
docker/root/origin-geth
docker/root/1000
-
Copy the origin and auxiliary chain data to the following location
docker/chain_data/origin-geth
docker/chain_data/<auxiliary chain id>
-
The origin-geth
and directory should have the following content- dev_pass (file) - genesis.json (file) - geth (directory) |- chaindata |- lightchaindata |- LOCK |- nodekey |- nodes |- transactions.rlp - keystore (directory) |- UTC--xxxxxxxxx |- UTC--xxxxxxxxx . .
-
Move the mosaic config file in
configs
directory. -
Move the gateway config of dev chain to a folder with below folder structure:
docker/root/origin-geth/1000/gateway-{gatewayAddress}/gateway-config.json
-
Go to docker folder. Run the following command to build the docker image.
docker build -t mosaicdao/dev-chains . -f docker/Dockerfile
-
Authenticate docker with
Docker login
if not already done. -
Run the following command to publish the Docker image.
docker push mosaicdao/dev-chains