From c1743764a0ab2758312aac9f7d63f1ca0140ebd9 Mon Sep 17 00:00:00 2001 From: gbayasgalan Date: Wed, 25 May 2022 18:50:34 +0000 Subject: [PATCH] FIX: replacing stereum image --- .../fastsync/molecule/default/prepare.yml | 44 ++++++++++++------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/controls/roles/fastsync/molecule/default/prepare.yml b/controls/roles/fastsync/molecule/default/prepare.yml index d4faf81e7..257acef32 100644 --- a/controls/roles/fastsync/molecule/default/prepare.yml +++ b/controls/roles/fastsync/molecule/default/prepare.yml @@ -6,6 +6,9 @@ vars_files: - ../../../../defaults/stereum_defaults.yaml + vars: + beacon_service: 9024aec6-12a8-456a-8096-ee7ef6f67167 + tasks: - name: Install python for Ansible (Ubuntu) raw: apt update && apt install -y pip @@ -24,30 +27,39 @@ - name: Write service configuration lighthouse copy: - dest: "/etc/stereum/services/9024aec6-12a8-456a-8096-ee7ef6f67167.yaml" + dest: "/etc/stereum/services/{{ beacon_service }}.yaml" owner: "root" group: "root" mode: 0644 content: | - command: [] - entrypoint: - - /opt/app/start/beacon.sh - env: - DATADIR: /opt/app/beacon - DEBUG_LEVEL: info - ETH1_NODES: http://stereum-25df0439-80e6-4afe-8876-72d7718035c3:8545 - NETWORK: prater - SLASHERDIR: /opt/app/slasher - SLASHER_DB_SIZE: '16' - id: 9024aec6-12a8-456a-8096-ee7ef6f67167 - image: stereum/lighthouse:v2.0.1-47 name: lighthouse + id: "{{ beacon_service }}" + image: sigp/lighthouse:v2.1.2 + env: {} ports: - 0.0.0.0:9000:9000/tcp - 0.0.0.0:9000:9000/udp - 127.0.0.1:5052:5052/tcp + command: + - lighthouse + - bn + - --debug-level=info + - --network=prater + - --eth1-endpoints=http://10.10.0.3:8545 + - --eth1-blocks-per-log-query=150 + - --datadir=/opt/app/beacon + - --http + - --http-address=0.0.0.0 + - --metrics + - --metrics-address=0.0.0.0 + - --disable-upnp + - --validator-monitor-auto + - --slasher + - --slasher-dir=/opt/app/slasher + - --slasher-max-db-size=16 + entrypoint: [] + user: "2000" volumes: - - /opt/stereum/lighthouse/beacon:/opt/app/beacon - - /opt/stereum/lighthouse/slasher:/opt/app/slasher - user: 2000 + - "/opt/stereum/lighthouse/beacon:/opt/app/beacon" + - "/opt/stereum/lighthouse/slasher:/opt/app/slasher" become: yes