use official docker images from ethdevops for swarm and geth

This commit is contained in:
Jakub Sokołowski 2018-08-30 12:06:41 -04:00
parent 3aa7614cb8
commit 94ce40f352
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
4 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
---
cont_image: 'statusteam/swarm:latest'
cont_image: 'ethdevops/swarm:latest'
cont_name: 'swarm-node'
cont_state: started
cont_recreate: false
@ -13,6 +13,7 @@ cont_port: 30399
cont_addr: '0.0.0.0'
# Geth settings
geth_image: 'ethdevops/geth:v1.8.14'
geth_name: 'swarm-geth'
geth_vol: '/docker/{{ geth_name }}'
geth_keys: '{{ geth_vol }}/keys'

View File

@ -2,14 +2,14 @@
- name: Run Geth container
docker_container:
name: '{{ geth_name }}'
image: '{{ cont_image }}'
image: '{{ geth_image }}'
user: root
pull: true
restart_policy: always
state: '{{ cont_state }}'
recreate: '{{ cont_recreate }}'
restart: '{{ cont_restart }}'
entrypoint: '/bin/geth'
entrypoint: '/geth'
ports:
- '{{ geth_port }}:{{ geth_port }}'
- '{{ geth_rpc_port }}:{{ geth_rpc_port }}'
@ -23,8 +23,6 @@
--rpcaddr={{ geth_rpc_addr }}
--rpcport={{ geth_rpc_port }}
--rpcapi=db,eth,net,web3,admin
--nodiscover
--bootnodes={{ bootnodes | join(",") }}
volumes:
- '{{ geth_vol }}/keys:/keys:rw'
- '{{ geth_vol }}/data:/data:rw'

View File

@ -10,7 +10,6 @@
- '{{ cont_vol }}/store'
- include_tasks: account.yml
- include_tasks: bootnodes.yml
- include_tasks: geth.yml
- include_tasks: swarm.yml
- include_tasks: consul.yml

View File

@ -9,6 +9,7 @@
state: '{{ cont_state }}'
recreate: '{{ cont_recreate }}'
restart: '{{ cont_restart }}'
entrypoint: '/swarm'
ports:
- '{{ cont_port }}:{{ cont_port }}'
- '{{ swarm_port }}:8500'
@ -23,6 +24,7 @@
--keystore=/keys
--password=/keys/password
--store.path=/store
--corsdomain='*'
--ens-api='http://geth:{{ geth_rpc_port }}'
volumes:
- '{{ geth_vol }}/keys:/keys:rw'