-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce another executable that starts the emulator in the cloud provider mode. Signed-off-by: Artem Chernyshev <[email protected]>
- Loading branch information
Showing
31 changed files
with
1,878 additions
and
268 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# syntax = docker/dockerfile-upstream:1.8.1-labs | ||
# syntax = docker/dockerfile-upstream:1.9.0-labs | ||
|
||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2024-07-11T16:29:15Z by kres 8c8b007. | ||
# Generated on 2024-07-29T20:21:19Z by kres faf91e3. | ||
|
||
ARG TOOLCHAIN | ||
|
||
|
@@ -11,7 +11,7 @@ FROM ghcr.io/siderolabs/ca-certificates:v1.7.0 AS image-ca-certificates | |
FROM ghcr.io/siderolabs/fhs:v1.7.0 AS image-fhs | ||
|
||
# runs markdownlint | ||
FROM docker.io/oven/bun:1.1.17-alpine AS lint-markdown | ||
FROM docker.io/oven/bun:1.1.20-alpine AS lint-markdown | ||
WORKDIR /src | ||
RUN bun i [email protected] [email protected] | ||
COPY .markdownlint.json . | ||
|
@@ -120,6 +120,14 @@ COPY --from=proto-compile /api/ /api/ | |
FROM scratch AS unit-tests | ||
COPY --from=unit-tests-run /src/coverage.txt /coverage-unit-tests.txt | ||
|
||
# builds cloud-provider-linux-amd64 | ||
FROM base AS cloud-provider-linux-amd64-build | ||
COPY --from=generate / / | ||
WORKDIR /src/cmd/cloud-provider | ||
ARG GO_BUILDFLAGS | ||
ARG GO_LDFLAGS | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS}" -o /cloud-provider-linux-amd64 | ||
|
||
# builds talemu-linux-amd64 | ||
FROM base AS talemu-linux-amd64-build | ||
COPY --from=generate / / | ||
|
@@ -128,14 +136,30 @@ ARG GO_BUILDFLAGS | |
ARG GO_LDFLAGS | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS}" -o /talemu-linux-amd64 | ||
|
||
FROM scratch AS cloud-provider-linux-amd64 | ||
COPY --from=cloud-provider-linux-amd64-build /cloud-provider-linux-amd64 /cloud-provider-linux-amd64 | ||
|
||
FROM scratch AS talemu-linux-amd64 | ||
COPY --from=talemu-linux-amd64-build /talemu-linux-amd64 /talemu-linux-amd64 | ||
|
||
FROM cloud-provider-linux-${TARGETARCH} AS cloud-provider | ||
|
||
FROM scratch AS cloud-provider-all | ||
COPY --from=cloud-provider-linux-amd64 / / | ||
|
||
FROM talemu-linux-${TARGETARCH} AS talemu | ||
|
||
FROM scratch AS talemu-all | ||
COPY --from=talemu-linux-amd64 / / | ||
|
||
FROM scratch AS image-cloud-provider | ||
ARG TARGETARCH | ||
COPY --from=cloud-provider cloud-provider-linux-${TARGETARCH} /cloud-provider | ||
COPY --from=image-fhs / / | ||
COPY --from=image-ca-certificates / / | ||
LABEL org.opencontainers.image.source=https://github.com/siderolabs/talemu | ||
ENTRYPOINT ["/cloud-provider"] | ||
|
||
FROM scratch AS image-talemu | ||
ARG TARGETARCH | ||
COPY --from=talemu talemu-linux-${TARGETARCH} /talemu | ||
|
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
Oops, something went wrong.