Commit Graph

50 Commits

Author SHA1 Message Date
Zahary Karadjov 292b6336fa Allow overriding more CLI settings 2021-09-20 13:26:06 +02:00
Jakub Sokołowski 992c8a43a4
rafactor to make use of infra-role-dist-validators
This way we can handle hosts with multiple nodes in different folders.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-28 16:23:21 +02:00
Jakub Sokołowski 3f6ef25470
add beacon_node_valid_network_names, move to tasks/checks.yml
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-05-11 10:39:20 +02:00
Jakub Sokołowski d8184c9893
add beacon_node_doppelganger_detection variable
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-04-29 15:10:08 +02:00
Jakub Sokołowski 92f740e089
support multiple Web3 URLs with beacon_node_web3_urls
The first URL is the default, and the rest are fallbacks.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-04-19 19:23:36 +02:00
Zahary Karadjov 4f04bd279b Add a setting for specifying the --max-peers count 2021-03-23 10:04:00 +01:00
Jakub Sokołowski d8a3cd9879
support enabling --subscribe-all-subnets
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-08 15:08:05 +01:00
Jakub Sokołowski 691c1347fa
move docker compose file to tempaltes for nicer formatting
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-08 15:07:26 +01:00
Zahary Karadjov 1110eef44a Specify the --slashing-db-kind parameter 2021-02-22 15:17:21 +01:00
Jakub Sokołowski ba913704d6
use consul_beacon_node.json for consul service file by defaul
This avoids issues with re-naming containers causing duplicate metrics.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-02-08 08:40:29 +01:00
Jakub Sokołowski b4e3c32af0
add beacon_node_netkey to be able to deploy node private key
This is used by Nimbus Eth2 bootnodes.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-01-29 13:25:59 +01:00
Jakub Sokołowski 5eecc0ae6f
allow for customizing Consul service name
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-12-01 16:24:08 +01:00
Jakub Sokołowski e48761352b
mount secrets subfolder as read-only volume to protect them
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-30 17:35:31 +01:00
Jakub Sokołowski ea00ca1795
make container auto-updates optional
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-25 15:58:26 +01:00
Jakub Sokołowski 598bb9a933
drop infura web3 url from repo
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-19 22:59:32 +01:00
Jakub Sokołowski 7301c02cee
add beacon_node_cont_entrypoint to control compose entrypoint
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-17 13:38:23 +01:00
Jakub Sokołowski 746f040618
drop repo url and branch, add beacon_node_cont_tag
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-10 15:38:48 +01:00
Jakub Sokołowski 2faa953f4a
drop beacon_node_shared_testnet, use beacon_node_network
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-10 11:08:45 +01:00
Jakub Sokołowski 54fcaaa887
drop rebuild timer for every host
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-06 11:11:14 +01:00
Jakub Sokołowski 970c326b9e
build images ofr nimbus-eth2 locally from a Dockerfile
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-03 14:58:09 +01:00
Ștefan Talpalaru 04438e6c44
reduce mem limits 2020-08-19 18:10:39 +02:00
Ștefan Talpalaru 5767de09c8
Medalla nodes (#6) 2020-08-04 12:44:32 +02:00
Ștefan Talpalaru 8237011e22
use the default (more aggressive) container restart policy 2020-07-10 19:11:15 +02:00
Ștefan Talpalaru afe9faf5af
put container restarts under the "cont_restart" flag
Had to gave up on `docker-compose up --no-start` because it still
stopped the running container image before pulling and creating a new
one.

Further more, we can now handle containers being restarted automatically
on our Altona servers.
2020-07-06 22:53:29 +02:00
Ștefan Talpalaru 9ebad060dc
add cron job 2020-06-28 22:13:10 +02:00
Ștefan Talpalaru c46700f889
remove CPU limits 2020-06-27 02:57:34 +02:00
Ștefan Talpalaru 62176b5b6c
don't try to start containers
and remove some unused commands/variables.

The rationale is that these containers need validator keys uploaded to
them before they can start and this is managed elsewhere.
2020-06-25 22:34:44 +02:00
Ștefan Talpalaru 983f428171 prepare to run 2 containers instead of 4 per server 2020-06-22 19:30:48 +02:00
Jakub Sokołowski 4ab7873125
use docker-compose command to use --compatibility
This is required due to following warning:

WARNING: Some services (beacon_node) use the 'deploy' key, which will be ignored.
         Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.

Without it the cpu/mem limits are not applied.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-26 18:55:24 +01:00
Jakub Sokołowski a85f7e906b
add restart_policy section to docker compose
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-26 16:12:48 +01:00
Jakub Sokołowski eb798800c7
set memory and cpu limits on the container
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-26 14:13:23 +01:00
Jakub Sokołowski 2923405a9d
bind RPC port to localhost from container
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-03-23 19:37:16 +01:00
Zahary Karadjov eadc21641f
Enable the RPC service; Handle CLI option name chnages 2020-03-23 18:55:20 +02:00
Jakub Sokołowski 9ffcda0db1
rename cont_state and similar to use compose_ prefix
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-19 11:00:18 +01:00
Jakub Sokołowski ad5a900c40
use docker-compose for easier container management
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-10 14:25:50 +01:00
Jakub Sokołowski 0e1cac9e4b
make exposed port the same as container service port
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-01 16:05:02 +01:00
Jakub Sokołowski 91ed5a7f43
update to use new posix compliant flags
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-10-29 17:27:56 +01:00
Jakub Sokołowski 41e98c1d2f
drop image flavour(protocol) from docker tag name
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-06-21 10:44:26 -04:00
Jakub Sokołowski e446b26e27
remove loop for creating multiple containers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-05-09 18:07:53 +02:00
Zahary Karadjov 3889a17e48
support raising and lowering the number of running nodes 2019-05-08 16:57:10 +03:00
Jakub Sokołowski f9db5421e3
remove useless beacon_node_verbose
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-23 19:55:23 +02:00
Jakub Sokołowski 631f739279
switch nibus log level back to INFO
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-23 19:35:05 +02:00
Zahary Karadjov 921fd1d81f Fix a typo 2019-03-28 21:01:05 +02:00
Jakub Sokołowski a7369a1739
add cont_ generic variables for managing state
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-23 10:30:29 +01:00
Jakub Sokołowski 793e9a66f7
add consul service definition, fix volume paths
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-23 09:57:42 +01:00
Jakub Sokołowski 680caaca16
tag is what changes based on network and flavour now
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-22 18:23:04 +01:00
Zahary Karadjov 81d3075597 the container name depends on the network too 2019-03-22 03:38:48 +02:00
Zahary Karadjov 78a2ca23aa Support multiple nodes per host; Extract the Nginx site in a separate repo 2019-03-21 23:08:55 +02:00
Zahary Karadjov 38756cc9aa Use the prepared domain name 2019-03-19 17:32:43 +02:00
Zahary Karadjov f0f650eebc Initial commit (not tested) 2019-02-14 00:45:53 +02:00