Skip to content

Commit

Permalink
chore(dockerfile): clone and build correct instance-manager codes
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit authored and innobead committed Dec 16, 2024
1 parent db6d9a7 commit 7aff640
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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

0 comments on commit 7aff640

Please sign in to comment.