-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/v-kramarenko-adds-sds-lvm-storag…
…e-class-controller' into v-kramarenko-adds-sds-lvm-storage-class-controller # Conflicts: # images/sds-lvm-controller/go.mod # images/sds-lvm-controller/go.sum
- Loading branch information
Showing
5 changed files
with
29 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG BASE_ALPINE=registry.deckhouse.io/base_images/alpine:3.16.3@sha256:5548e9172c24a1b0ca9afdd2bf534e265c94b12b36b3e0c0302f5853eaf00abb | ||
ARG BASE_GOLANG_20_ALPINE_BUILDER=registry.deckhouse.io/base_images/golang:1.20.5-alpine3.18@sha256:51a47fb0851397db2f506c15c426735bc23de31177cbdd962880c0879d1906a4 | ||
|
||
FROM $BASE_GOLANG_20_ALPINE_BUILDER as builder | ||
|
||
WORKDIR /go/src | ||
|
||
ADD go.mod . | ||
ADD go.sum . | ||
|
||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
WORKDIR /go/src/cmd | ||
RUN GOOS=linux GOARCH=amd64 go build -o sds-lvm-controller | ||
|
||
FROM --platform=linux/amd64 $BASE_ALPINE | ||
COPY --from=builder /go/src/cmd/sds-lvm-controller /go/src/cmd/sds-lvm-controller | ||
|
||
ENTRYPOINT ["/go/src/cmd/sds-lvm-controller"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters