Skip to content

Commit df2cde2

Browse files
authored
fix: MacOS specifics (#187)
* compose pull before start * switch to amd64 for warg-server * use [[ ]] for bash comparisons
1 parent 9dc15db commit df2cde2

File tree

6 files changed

+6
-9
lines changed

6 files changed

+6
-9
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ METADATA_URI=https://raw.githubusercontent.com/Lay3rLabs/wavs-foundry-template/r
33
LOCAL_ETHEREUM_RPC_URL=http://localhost:8545
44

55
CHAIN_ID=17000
6-
TESTNET_RPC_URL=https://holesky.drpc.org
6+
TESTNET_RPC_URL=https://1rpc.io/holesky
77

88
# this key requires funds. used as the admin / deployer of contracts and core contracts.
99
FUNDED_KEY=

docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ services:
1313
warg-server:
1414
image: "ghcr.io/reecepbcups/warg-registry:v0.9.3"
1515
container_name: "warg-server"
16+
platform: linux/amd64
1617
environment:
1718
WARG_OPERATOR_KEY: ecdsa-p256:I+UlDo0HxyBBFeelhPPWmD+LnklOpqZDkrFP5VduASk=
1819
WARG_NAMESPACE: example
1920
WKG_REGISTRY: http://localhost:5000
2021
WARG_CONTENT_BASE_URL: http://localhost:8090
2122
WARG_LISTEN: 0.0.0.0:8090
2223
WARG_VERBOSE: 1
23-
volumes:
24-
- warg-data:/var/lib/warg-server/data
2524
ports:
2625
- 8090:8090
2726
command: ["--rm"]
@@ -38,6 +37,3 @@ services:
3837
stop_signal: SIGKILL
3938
command: daemon
4039
restart: unless-stopped
41-
42-
volumes:
43-
warg-data:

script/create-aggregator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ -z "$RPC_URL" ]; then
1818
RPC_URL=`sh ./script/get-rpc.sh`
1919
fi
2020

21-
SP=""; if [ "$(uname)" == *"Darwin"* ]; then SP=" "; fi
21+
SP=""; if [[ "$(uname)" == *"Darwin"* ]]; then SP=" "; fi
2222

2323
cd $(git rev-parse --show-toplevel) || exit 1
2424

script/create-deployer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/bash
22
# set -e
3-
SP=""; if [ "$(uname)" == *"Darwin"* ]; then SP=" "; fi
3+
SP=""; if [[ "$(uname)" == *"Darwin"* ]]; then SP=" "; fi
44

55
# if DEPLOY_ENV is not set, grab it from the ./script/get-deploy-status.sh
66
if [ -z "$DEPLOY_ENV" ]; then

script/create-operator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# set -e
33

4-
SP=""; if [ "$(uname)" == *"Darwin"* ]; then SP=" "; fi
4+
SP=""; if [[ "$(uname)" == *"Darwin"* ]]; then SP=" "; fi
55

66
cd $(git rev-parse --show-toplevel) || exit 1
77

script/start_all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ if [ "$DEPLOY_ENV" = "LOCAL" ]; then
3535
done
3636

3737
FILES="-f docker-compose.yml -f telemetry/docker-compose.yml"
38+
docker compose ${FILES} pull
3839
docker compose ${FILES} up --force-recreate -d
3940
trap "docker compose ${FILES} down --remove-orphans && docker kill wavs-1 wavs-aggregator-1 > /dev/null 2>&1 && echo -e '\nKilled IPFS + Local WARG, and wavs instances'" EXIT
4041

0 commit comments

Comments
 (0)