From e94ff98d1ebe9571600489ab9ccba9eb32b6f610 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Mon, 16 Dec 2024 17:05:08 +0800 Subject: [PATCH] chore(dockerfile): clone and build correct instance-manager codes Signed-off-by: Derek Su --- Dockerfile.dapper | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.dapper b/Dockerfile.dapper index 59897cf75..e0cada7e0 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -16,6 +16,7 @@ ENV DAPPER_RUN_ARGS --privileged --tmpfs /go/src/github.com/longhorn/longhorn-en ENV DAPPER_SOURCE /go/src/github.com/longhorn/longhorn-engine ENV GOLANGCI_LINT_VERSION="v1.60.3" +ENV LONGHORN_INSTANCE_MANAGER_BRANCH="master" WORKDIR ${DAPPER_SOURCE} ENTRYPOINT ["./scripts/entry"] @@ -94,7 +95,7 @@ RUN cd integration && \ # Build longhorn-instance-manager for integration testing RUN cd /go/src/github.com/longhorn && \ - git clone https://github.com/longhorn/longhorn-instance-manager.git && \ + git clone https://github.com/longhorn/longhorn-instance-manager.git -b ${LONGHORN_INSTANCE_MANAGER_BRANCH} && \ cd longhorn-instance-manager && \ go build -o ./longhorn-instance-manager -tags netgo -ldflags "-linkmode external -extldflags -static" && \ install longhorn-instance-manager /usr/local/bin