File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 workflow_dispatch :
77
88env :
9- go_version : 1.22 .12
9+ go_version : 1.23 .12
1010
1111jobs :
1212
Original file line number Diff line number Diff line change 11# go-flare-rosetta
22
33## System Requirements
4- - go version 1.22
4+ - go version 1.23
55- gcc, g++ and jq
66- CPU: Equivalent of 8 AWS vCPU
77- RAM: 16 GiB
Original file line number Diff line number Diff line change 11# ------------------------------------------------------------------------------
22# Build go-flare
33# ------------------------------------------------------------------------------
4- FROM golang:1.22 AS flare
4+ FROM golang:1.23 AS flare
55
66WORKDIR /app
77
8- ARG GO_FLARE_VERSION=v1.12 .0
8+ ARG GO_FLARE_VERSION=v1.13 .0
99ARG GO_FLARE_REPO=https://github.com/flare-foundation/go-flare
1010
1111RUN git clone --branch "$GO_FLARE_VERSION" "${GO_FLARE_REPO}" .
@@ -18,7 +18,7 @@ RUN cd avalanchego && \
1818# ------------------------------------------------------------------------------
1919# Build flare-rosetta
2020# ------------------------------------------------------------------------------
21- FROM golang:1.22 AS rosetta
21+ FROM golang:1.23 AS rosetta
2222
2323ARG ROSETTA_BRANCH=main
2424ARG ROSETTA_SRC=https://github.com/flare-foundation/flare-rosetta/archive/refs/heads/${ROSETTA_BRANCH}.zip
Original file line number Diff line number Diff line change 11# ------------------------------------------------------------------------------
22# Build go-flare
33# ------------------------------------------------------------------------------
4- FROM arm64v8/golang:1.22 AS flare
4+ FROM arm64v8/golang:1.23 AS flare
55
66WORKDIR /app
77
8- ARG GO_FLARE_VERSION=v1.12 .0
8+ ARG GO_FLARE_VERSION=v1.13 .0
99ARG GO_FLARE_REPO=https://github.com/flare-foundation/go-flare
1010
1111RUN git clone --branch "$GO_FLARE_VERSION" "${GO_FLARE_REPO}" .
@@ -18,7 +18,7 @@ RUN cd avalanchego && \
1818# ------------------------------------------------------------------------------
1919# Build flare-rosetta
2020# ------------------------------------------------------------------------------
21- FROM arm64v8/golang:1.22 AS rosetta
21+ FROM arm64v8/golang:1.23 AS rosetta
2222
2323ARG ROSETTA_SRC=https://github.com/flare-foundation/flare-rosetta/archive/refs/heads/main.zip
2424ARG ROSETTA_SRC_ZIP_SUBFOLDER=flare-rosetta-main
Original file line number Diff line number Diff line change 11services :
22 validator1 :
3- image : ghcr.io/flare-foundation/go-flare:v1.12 .0
3+ image : ghcr.io/flare-foundation/go-flare:v1.13 .0
44 environment :
55 LOG_LEVEL : info
66 NETWORK_ID : localflare
@@ -20,7 +20,7 @@ services:
2020 test : curl localhost:9650/ext/health
2121
2222 validator2 :
23- image : ghcr.io/flare-foundation/go-flare:v1.12 .0
23+ image : ghcr.io/flare-foundation/go-flare:v1.13 .0
2424 environment :
2525 LOG_LEVEL : info
2626 NETWORK_ID : localflare
@@ -37,7 +37,7 @@ services:
3737 ipv4_address : 10.20.30.2
3838
3939 validator3 :
40- image : ghcr.io/flare-foundation/go-flare:v1.12 .0
40+ image : ghcr.io/flare-foundation/go-flare:v1.13 .0
4141 environment :
4242 LOG_LEVEL : info
4343 NETWORK_ID : localflare
@@ -55,7 +55,7 @@ services:
5555 ipv4_address : 10.20.30.3
5656
5757 validator4 :
58- image : ghcr.io/flare-foundation/go-flare:v1.12 .0
58+ image : ghcr.io/flare-foundation/go-flare:v1.13 .0
5959 environment :
6060 LOG_LEVEL : info
6161 NETWORK_ID : localflare
@@ -72,7 +72,7 @@ services:
7272 ipv4_address : 10.20.30.4
7373
7474 validator5 :
75- image : ghcr.io/flare-foundation/go-flare:v1.12 .0
75+ image : ghcr.io/flare-foundation/go-flare:v1.13 .0
7676 environment :
7777 LOG_LEVEL : info
7878 NETWORK_ID : localflare
Original file line number Diff line number Diff line change 6060 --log-dir=" $LOG_DIR " \
6161 --log-level=" $LOG_LEVEL " \
6262 --network-id=" $NETWORK_ID " \
63- --api-keystore-enabled=true \
6463 --http-allowed-hosts=" $HTTP_ALLOWED_HOSTS " \
6564 $EXTRA_ARGUMENTS
Original file line number Diff line number Diff line change @@ -40,15 +40,15 @@ log_header() {
4040
4141cleanup () {
4242 log_info " Cleaning up..."
43- # docker compose -f server/docker/docker-compose.yml down
43+ ROSETTA_IMAGE= $ROSETTA_IMAGE START_ROSETTA_SERVER_AFTER_BOOTSTRAP= $START_ROSETTA_SERVER_AFTER_BOOTSTRAP MODE= $MODE docker compose -f server/docker/docker-compose.yml down
4444}
4545
46- trap cleanup EXIT
46+ trap cleanup EXIT INT TERM
4747
4848# Build Docker image
4949log_header " Localflare 5-Node Deployment with Rosetta"
5050
51- if [ ! $CI ]; then
51+ if [ " $CI " != " true " ]; then
5252 docker build \
5353 --progress=plain \
5454 --build-arg ROSETTA_SRC=. \
@@ -77,7 +77,7 @@ log_info "Bootstrapping P-chain using go-flare test scripts..."
7777
7878# Download the test scripts from go-flare repository
7979rm -rf tmp && mkdir tmp
80- git clone --depth=1 --branch=v1.12 .0 https://github.com/flare-foundation/go-flare.git tmp/go-flare
80+ git clone --depth=1 --branch=v1.13 .0 https://github.com/flare-foundation/go-flare.git tmp/go-flare
8181npm install -g ts-node
8282yarn --cwd " tmp/go-flare/test-scripts"
8383yarn --cwd " tmp/go-flare/test-scripts" run p-chain-import
You can’t perform that action at this time.
0 commit comments