?
This commit is contained in:
@@ -4,6 +4,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./sonic
|
context: ./sonic
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
VERSION: ${SONIC_VERSION:-v2.0.3}
|
||||||
stop_grace_period: 3m
|
stop_grace_period: 3m
|
||||||
volumes:
|
volumes:
|
||||||
- "sonic:/var/sonic"
|
- "sonic:/var/sonic"
|
||||||
|
|||||||
@@ -7,9 +7,11 @@
|
|||||||
|
|
||||||
FROM golang:1.22 as builder
|
FROM golang:1.22 as builder
|
||||||
|
|
||||||
|
ARG VERSION
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git musl-dev make
|
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
|
WORKDIR /go/Sonic
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user