Skip to content

Commit 7aff640

Browse files
derekbitinnobead
authored andcommitted
chore(dockerfile): clone and build correct instance-manager codes
Signed-off-by: Derek Su <[email protected]>
1 parent db6d9a7 commit 7aff640

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile.dapper

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ENV DAPPER_RUN_ARGS --privileged --tmpfs /go/src/github.com/longhorn/longhorn-en
1616
ENV DAPPER_SOURCE /go/src/github.com/longhorn/longhorn-engine
1717

1818
ENV GOLANGCI_LINT_VERSION="v1.60.3"
19+
ENV LONGHORN_INSTANCE_MANAGER_BRANCH="master"
1920

2021
WORKDIR ${DAPPER_SOURCE}
2122
ENTRYPOINT ["./scripts/entry"]
@@ -94,7 +95,7 @@ RUN cd integration && \
9495

9596
# Build longhorn-instance-manager for integration testing
9697
RUN cd /go/src/github.com/longhorn && \
97-
git clone https://github.com/longhorn/longhorn-instance-manager.git && \
98+
git clone https://github.com/longhorn/longhorn-instance-manager.git -b ${LONGHORN_INSTANCE_MANAGER_BRANCH} && \
9899
cd longhorn-instance-manager && \
99100
go build -o ./longhorn-instance-manager -tags netgo -ldflags "-linkmode external -extldflags -static" && \
100101
install longhorn-instance-manager /usr/local/bin

0 commit comments

Comments
 (0)