Skip to content

Commit

Permalink
Add compatibility for M1 macs
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rek committed Sep 15, 2023
1 parent 3d32c54 commit 49f71f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
services:
validator:
image: validator
platform: "linux/amd64"
build:
context: .
dockerfile: Dockerfile.validator
Expand All @@ -9,6 +10,7 @@ services:

bridge:
image: bridge
platform: "linux/amd64"
build:
context: .
dockerfile: Dockerfile.bridge
Expand Down
6 changes: 3 additions & 3 deletions tools/gen_auth_tokens.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ generate_token() {
}

write_token() {
local auth_level="$1"
local auth_level=$(echo "$1" | tr '[:lower:]' '[:upper:]')
local token="$2"

local var_name="CELESTIA_NODE_AUTH_TOKEN_${auth_level^^}"
local var_name="CELESTIA_NODE_AUTH_TOKEN_${auth_level}"

sed -i "s/.*$var_name.*/$var_name=$token/" "$DOTENV"
sed -i'' -e "s/.*$var_name.*/$var_name=$token/" "$DOTENV"
}

main() {
Expand Down

0 comments on commit 49f71f0

Please sign in to comment.