-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rhoop/docker compose and k8 2 (#292)
* merge magi updates and changes from broken branch * Added tx-fuzz * encapsulate secret path for ambigious redirect error * lots of changes to get k8 working * shfmt fixes --------- Co-authored-by: Richard Hoop <[email protected]> Co-authored-by: macwis <[email protected]>
- Loading branch information
1 parent
7c0de79
commit c3e5ad6
Showing
11 changed files
with
303 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
version: '3.8' | ||
|
||
services: | ||
|
||
#------- Secrets | ||
generator: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
working_dir: /specular/workspace | ||
entrypoint: /bin/bash ../sbin/generate_secrets.sh -d -j -y | ||
|
||
#------- L1 | ||
l1-geth: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
tty: true | ||
healthcheck: | ||
test: bash -c "[ -f /tmp/.start_l1.sh.lock ]" | ||
retries: 60 | ||
interval: 5s | ||
start_period: 40s | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
working_dir: /specular/workspace | ||
entrypoint: /bin/bash ../sbin/start_l1.sh -c -d -w -y | ||
depends_on: | ||
generator: | ||
condition: service_completed_successfully | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.2 | ||
ports: | ||
- "8545:8545" | ||
|
||
|
||
#------- GETH | ||
sp-geth: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
restart: on-failure | ||
depends_on: | ||
l1-geth: | ||
condition: service_healthy | ||
healthcheck: | ||
test: bash -c "[ -f /tmp/.start_sp_geth.sh.lock ]" | ||
retries: 10 | ||
interval: 5s | ||
start_period: 40s | ||
working_dir: /specular/workspace | ||
entrypoint: ../sbin/start_sp_geth.sh -c -w | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.3 | ||
ports: | ||
- "4011:4011" | ||
- "4012:4012" | ||
- "4013:4013" | ||
|
||
|
||
|
||
#------- MAGI | ||
sp-magi: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
restart: on-failure | ||
depends_on: | ||
sp-geth: | ||
condition: service_healthy | ||
healthcheck: | ||
test: bash -c "[ -f /tmp/.start_sp_magi.sh.lock ]" | ||
retries: 10 | ||
interval: 5s | ||
start_period: 20s | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
working_dir: /specular/workspace | ||
entrypoint: bash ../sbin/start_sp_magi.sh | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.4 | ||
|
||
#------- SIDECAR | ||
sidecar: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
restart: on-failure | ||
depends_on: | ||
sp-magi: | ||
condition: service_healthy | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
working_dir: /specular/workspace | ||
entrypoint: bash ../sbin/start_sidecar.sh | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.5 | ||
|
||
#------- TX-FUZZ | ||
tx-fuzz: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:tx-fuzz | ||
restart: on-failure | ||
depends_on: | ||
sp-geth: | ||
condition: service_healthy | ||
volumes: | ||
- ../workspace:/tmp | ||
entrypoint: /tx-fuzz.bin spam --sk `cat /tmp/workspace/validator_pk.txt` --rpc http://192.168.160.3:4011 --txcount 2 | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.6 | ||
|
||
networks: | ||
specular: | ||
name: sp_network | ||
ipam: | ||
config: | ||
- subnet: 192.168.160.0/24 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
version: '3.8' | ||
|
||
services: | ||
|
||
#------- Secrets | ||
generator: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
working_dir: /specular/workspace | ||
entrypoint: /bin/bash ../sbin/generate_secrets.sh -d -j -y | ||
|
||
#------- L1 | ||
l1-geth: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
tty: true | ||
healthcheck: | ||
test: bash -c "[ -f /tmp/.start_l1.sh.lock ]" | ||
retries: 60 | ||
interval: 5s | ||
start_period: 40s | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
working_dir: /specular/workspace | ||
entrypoint: /bin/bash ../sbin/start_l1.sh -c -d -w -y | ||
depends_on: | ||
generator: | ||
condition: service_completed_successfully | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.2 | ||
ports: | ||
- "8545:8545" | ||
|
||
|
||
#------- GETH | ||
sp-geth: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
restart: on-failure | ||
depends_on: | ||
l1-geth: | ||
condition: service_healthy | ||
healthcheck: | ||
test: bash -c "[ -f /tmp/.start_sp_geth.sh.lock ]" | ||
retries: 10 | ||
interval: 5s | ||
start_period: 40s | ||
working_dir: /specular/workspace | ||
entrypoint: ../sbin/start_sp_geth.sh -c -w | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.3 | ||
ports: | ||
- "4011:4011" | ||
- "4012:4012" | ||
- "4013:4013" | ||
|
||
|
||
|
||
#------- MAGI | ||
sp-magi: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
restart: on-failure | ||
depends_on: | ||
sp-geth: | ||
condition: service_healthy | ||
healthcheck: | ||
test: bash -c "[ -f /tmp/.start_sp_magi.sh.lock ]" | ||
retries: 10 | ||
interval: 5s | ||
start_period: 20s | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
working_dir: /specular/workspace | ||
entrypoint: bash ../sbin/start_sp_magi.sh | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.4 | ||
|
||
#------- SIDECAR | ||
sidecar: | ||
image: 792926601177.dkr.ecr.us-east-2.amazonaws.com/specular-platform:specular-latest | ||
restart: on-failure | ||
depends_on: | ||
sp-magi: | ||
condition: service_healthy | ||
volumes: | ||
- ../workspace:/specular/workspace | ||
- ../sbin:/specular/sbin | ||
working_dir: /specular/workspace | ||
entrypoint: bash ../sbin/start_sidecar.sh | ||
networks: | ||
specular: | ||
ipv4_address: 192.168.160.5 | ||
|
||
networks: | ||
specular: | ||
name: sp_network | ||
ipam: | ||
config: | ||
- subnet: 192.168.160.0/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.