-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Docker relayer * Add vector container * Remove secret key * Remove vector * Release docker image * Update docker registry * Improve ReadMe
- Loading branch information
Showing
9 changed files
with
158 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.vscode | ||
.env |
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,6 @@ | ||
PARACHAIN_RELAY_ASSETHUB_ETH_KEY= | ||
EXECUTION_RELAY_ASSETHUB_SUB_KEY= | ||
CONFIG_DIR=/tmp/snowbridge | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_REGION=eu-central-1 |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/.envrc | ||
build/ | ||
.vscode/ | ||
.env |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
FROM golang:1.14 | ||
FROM golang:1.21 | ||
WORKDIR /opt/relayer | ||
ADD . . | ||
RUN go build -v -o build/snowbridge-relay main.go | ||
|
||
FROM parity/subkey:2.0.0 | ||
FROM ubuntu:22.04 | ||
COPY --from=0 /opt/relayer/build/snowbridge-relay /usr/local/bin/ | ||
VOLUME ["/config"] | ||
ENTRYPOINT ["/usr/local/bin/snowbridge-relay"] |
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,24 @@ | ||
version: "3" | ||
|
||
services: | ||
execution-assethub: | ||
platform: linux/amd64 | ||
image: ghcr.io/snowfork/snowbridge-relay | ||
build: | ||
context: . | ||
command: run execution --config /config/execution-relay-asset-hub-0.json --substrate.private-key ${EXECUTION_RELAY_ASSETHUB_SUB_KEY} | ||
volumes: | ||
- ${CONFIG_DIR}:/config | ||
env_file: | ||
- .env | ||
restart: on-failure | ||
|
||
parachain-assethub: | ||
platform: linux/amd64 | ||
image: ghcr.io/snowfork/snowbridge-relay | ||
command: run parachain --config /config/parachain-relay-asset-hub-0.json --ethereum.private-key ${PARACHAIN_RELAY_ASSETHUB_ETH_KEY} | ||
volumes: | ||
- ${CONFIG_DIR}:/config | ||
env_file: | ||
- .env | ||
restart: on-failure |
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,26 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
source ../web/packages/test/scripts/set-env.sh | ||
|
||
start_relayer() | ||
{ | ||
docker compose up -d | ||
} | ||
|
||
stop_relayer() | ||
{ | ||
docker compose down | ||
} | ||
|
||
build_image() | ||
{ | ||
docker build -f Dockerfile -t snowbridge-relayer . | ||
} | ||
|
||
if [ -z "${from_start_services:-}" ]; then | ||
echo "start relayers only!" | ||
trap kill_all SIGINT SIGTERM EXIT | ||
start_relayer | ||
wait | ||
fi |
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