From 62b049b2e19f91c5f44ba6426e63325049d1c0bb Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Mon, 17 Mar 2025 04:36:11 +0100 Subject: [PATCH] ? --- sonic.yml | 2 ++ sonic/Dockerfile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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