-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch Ironic node list after each e2e test
Signed-off-by: Huy Mai <huy.mai@est.tech>
- Loading branch information
Showing
3 changed files
with
106 additions
and
0 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,25 @@ | ||
# Support FROM override | ||
ARG BUILD_IMAGE=docker.io/golang:1.22.8@sha256:b274ff14d8eb9309b61b1a45333bf0559a554ebcf6732fa2012dbed9b01ea56f | ||
ARG BASE_IMAGE=gcr.io/distroless/static:nonroot@sha256:9ecc53c269509f63c69a266168e4a687c7eb8c0cfd753bd8bfcaa4f58a90876f | ||
|
||
# Build the manager binary | ||
FROM $BUILD_IMAGE AS builder | ||
|
||
WORKDIR /workspace | ||
|
||
# Bring in the go dependencies before anything else so we can take | ||
# advantage of caching these layers in future builds. | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . . | ||
RUN CGO_ENABLED=0 GO111MODULE=on go build -a -o createVM main.go | ||
|
||
# Copy the controller-manager into a thin image | ||
# BMO has a dependency preventing us to use the static one, | ||
# using the base one instead | ||
FROM $BASE_IMAGE | ||
WORKDIR / | ||
COPY --from=builder /workspace/createVM . | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/createVM"] |
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