-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from LilDrunkenSmurf/fix/tf-runner-image
Fix: test tf-runner dockerfile change
- Loading branch information
Showing
5 changed files
with
32 additions
and
24 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,22 +1,35 @@ | ||
# renovate: datasource=github-releases depName=weaveworks/tf-runner versioning=docker | ||
ARG VERSION=0.15.1 | ||
|
||
FROM ghcr.io/weaveworks/tf-runner:v${VERSION} as runner | ||
ARG VERSION | ||
FROM node:21.6-bookworm as build | ||
|
||
# renovate: datasource=npm depName=@bitwarden/cli versioning=npm | ||
ARG BW_VERSION=2024.1.0 | ||
ARG VERSION | ||
ARG TARGETPLATFORM | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
LABEL dev.LilDrunkenSmurf.image.target_platform=$TARGETPLATFORM | ||
LABEL dev.LilDrunkenSmurf.image.target_architecture=$TARGETARCH | ||
LABEL dev.LilDrunkenSmurf.image.target_os=$TARGETOS | ||
LABEL org.opencontainers.image.source="https://github.com/bitwarden/clients" | ||
LABEL org.opencontainers.image.source="https://github.com/hashicorp/terraform" | ||
LABEL org.opencontainers.image.source="https://github.com/weaveworks/tf-controller" | ||
|
||
# renovate: datasource=npm depName=@bitwarden/cli versioning=npm | ||
ARG BW_VERSION=2024.1.0 | ||
WORKDIR /usr/local/bin | ||
|
||
RUN npm i -g @bitwarden/cli@${BW_VERSION} | ||
|
||
# renovate: datasource=github-releases depName=hashicorp/terraform versioning=docker | ||
FROM hashicorp/terraform:1.7.1 as terraform | ||
ARG VERSION | ||
|
||
FROM ghcr.io/weaveworks/tf-runner:v${VERSION} as runner | ||
ARG VERSION | ||
|
||
USER root | ||
|
||
RUN apk add --no-cache npm && npm i -g @bitwarden/cli@${BW_CLI_VERSION} | ||
RUN apk add --no-cache npm | ||
COPY --from=build /usr/local/bin/bw /usr/local/bin/bw | ||
COPY --from=terraform --chown=65532:65532 /bin/terraform /usr/local/bin/terraform | ||
|
||
USER 65532:65532 |
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 |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
file: | ||
/usr/local/bin/terraform: | ||
exists: true | ||
file: | ||
/usr/local/bin/bw: | ||
exists: true |
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