Commit Graph

24 Commits

Author SHA1 Message Date
Jakub Sokołowski 37f8a3ab06
support multiple docker-compose*.yml files
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-05-11 11:54:40 +02: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
Jakub Sokołowski 0d2b610c45
use docker_compose Ansible task instead of command
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-02-22 21:02:27 +01:00
Jakub Sokołowski 809326c802
recreate container if compose changed
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-20 16:39:19 +01:00
Jakub Sokołowski 4560b10a0c
remove conditional for container creation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-05 13:24:45 +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 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 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 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
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 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 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 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 78a2ca23aa Support multiple nodes per host; Extract the Nginx site in a separate repo 2019-03-21 23:08:55 +02:00
Zahary Karadjov f0f650eebc Initial commit (not tested) 2019-02-14 00:45:53 +02:00