diff --git a/sonic.yml b/sonic.yml index 1a13a1b3..cd70de28 100644 --- a/sonic.yml +++ b/sonic.yml @@ -4,6 +4,8 @@ services: build: context: ./sonic dockerfile: Dockerfile + args: + VERSION: ${SONIC_VERSION:-v2.0.3} stop_grace_period: 3m volumes: - "sonic:/var/sonic" diff --git a/sonic/Dockerfile b/sonic/Dockerfile index fc032a78..82234ef4 100644 --- a/sonic/Dockerfile +++ b/sonic/Dockerfile @@ -7,9 +7,11 @@ FROM golang:1.22 as builder +ARG VERSION + RUN apt-get update && apt-get install -y git musl-dev make -RUN cd /go && git clone https://github.com/Fantom-foundation/Sonic.git && cd Sonic && git fetch --tags && git checkout -b v2.0.1 tags/v2.0.1 +RUN cd /go && git clone https://github.com/0xsoniclabs/sonic.git && cd Sonic && git fetch --tags && git checkout -b ${VERSION} tags/${VERSION} WORKDIR /go/Sonic