Commit Graph

106 Commits

Author SHA1 Message Date
Ștefan Talpalaru bd0bfbba14
cron: delete any hanging *-build-run image 2020-08-19 16:54:15 +02:00
Ștefan Talpalaru 5767de09c8
Medalla nodes (#6) 2020-08-04 12:44:32 +02:00
Ștefan Talpalaru 9e5c0beec8
Merge pull request #5 from status-im/restart
use the default (more aggressive) container restart policy
2020-07-14 14:28:14 +02:00
Ștefan Talpalaru 8237011e22
use the default (more aggressive) container restart policy 2020-07-10 19:11:15 +02:00
Ștefan Talpalaru cfba480e1e
Merge pull request #4 from status-im/container
put container restarts under the "cont_restart" flag
2020-07-06 23:22:09 +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 42a5d65627
Merge pull request #3 from status-im/fixes
syntax and CLI fixes
2020-07-01 00:07:08 +02:00
Ștefan Talpalaru a415b4c187
docker-compose.yml: change command syntax 2020-06-28 22:13:30 +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 750964a91f
fix it again 2020-06-26 23:21:17 +02:00
Ștefan Talpalaru 26cad49f60
syntax and CLI fixes
There's some weirdness in the interaction between Jinja2 directives and
YAML syntax.

Also, `--detach` cannot be used with `--no-start` for docker-compose.
2020-06-26 22:57:50 +02:00
Ștefan Talpalaru 234fb601a3
Merge pull request #2 from status-im/containers
don't try to start containers
2020-06-26 22:37:37 +02:00
Ștefan Talpalaru d363a54a1f
testnet2-specific args 2020-06-26 17:50:31 +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 d8efd26e17
don't set id for healthchecks
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-26 17:44:04 +01: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 9681fd6060
open Metrics port too
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-02-03 14:07:05 +01:00
Jakub Sokołowski 3198343a25
Revert "don't configure consul if it's not enabled"
This reverts commit 66bb521b33.
2020-01-29 23:33:51 +01:00
Jakub Sokołowski 66bb521b33
don't configure consul if it's not enabled
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-01-28 20:57:39 +01:00
Jakub Sokołowski e37ebad154
disable healthchecks temporarily, shit is whack yo
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-06 14:34:08 +01:00
Jakub Sokołowski c2992d80b1
add --nat:extip flag to explicitly set advertised adress
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-11-01 16:33:47 +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
Zahary Karadjov 0b89c2b666
Remove an unnecessary command-line flag 2019-10-30 17:47:08 +02:00
Jakub Sokołowski 5c9391984c
add container name as metadata to metrics service
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-10-29 19:08:42 +01:00
Jakub Sokołowski d1c2c018cb
fix enabling metrics server
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-10-29 18:24:36 +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
Jakub Sokołowski e8561faec3
fix name of loop_index variable
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-02 15:48:39 +02:00
Jakub Sokołowski ac72df3342
use a common service name for all beacon nodes
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-02 15:24:00 +02:00
Zahary Karadjov 921fd1d81f Fix a typo 2019-03-28 21:01:05 +02:00
Jakub Sokołowski 6de8fc678b
enable auto-updates of beacon containers on image push
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-25 17:29:53 +01: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 020d513461
fix variable used in iptables loop
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-23 10:04:03 +01:00
Jakub Sokołowski 5a8a1f560a
use git in requirements example
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-23 09:59:44 +01:00
Jakub Sokołowski 0ec51a2b4d
add example of configuration
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-23 09:58:00 +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 8154ed43b3
add dependency on infra-role-consul-service
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-23 09:57:01 +01:00
Jakub Sokołowski 2cf26ba163
add missing "Save iptables rules" handler
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-23 09:56:46 +01:00