Skip to content

Commit

Permalink
Merge pull request #58 from LilDrunkenSmurf/fix/tf-runner-image
Browse files Browse the repository at this point in the history
Fix: test tf-runner dockerfile change
  • Loading branch information
joryirving authored Jan 29, 2024
2 parents fef51fd + d8c3cd3 commit e15bc58
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
5 changes: 2 additions & 3 deletions apps/bitwarden-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
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
Expand All @@ -14,7 +13,7 @@ LABEL org.opencontainers.image.source="https://github.com/bitwarden/clients"

WORKDIR /usr/local/bin

RUN npm i -g @bitwarden/cli@${BW_VERSION}
RUN npm i -g @bitwarden/cli@${VERSION}

COPY ./entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]
27 changes: 20 additions & 7 deletions apps/tf-runner-bitwarden/Dockerfile
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
ARG VERSION
# renovate: datasource=github-releases depName=weaveworks/tf-runner versioning=docker
ARG VERSION=0.15.1

FROM node:21.6-bookworm as build
# renovate: datasource=npm depName=@bitwarden/cli versioning=npm
ARG BW_VERSION=2024.1.0
FROM ghcr.io/weaveworks/tf-runner:v${VERSION} as runner

ARG TARGETPLATFORM
ARG TARGETARCH
Expand All @@ -11,19 +10,13 @@ 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/weaveworks/tf-controller"

WORKDIR /usr/local/bin

RUN npm i -g @bitwarden/cli@${BW_VERSION}

# renovate: datasource=github-releases depName=weaveworks/tf-runner versioning=docker

FROM ghcr.io/weaveworks/tf-runner:v${VERSION} as runner
# renovate: datasource=npm depName=@bitwarden/cli versioning=npm
ARG BW_VERSION=2024.1.0

USER root

COPY --from=build /usr/local/bin/bw /usr/local/bin/bw
RUN apk add --no-cache npm && npm i -g @bitwarden/cli@${BW_CLI_VERSION}

USER 65532:65532
3 changes: 3 additions & 0 deletions apps/tf-runner-bitwarden/ci/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
file:
/usr/local/bin/terraform:
exists: true
file:
/usr/local/bin/bw:
exists: true
2 changes: 1 addition & 1 deletion apps/tf-runner-bitwarden/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ base: false
semantic_versioning: false
channels:
- name: stable
platforms: ["linux/amd64"] # ["linux/amd64", "linux/arm64"] arm64 is failing right now
platforms: ["linux/amd64", "linux/arm64"] # ["linux/amd64", "linux/arm64"] arm64 is failing right now
stable: true
tests:
enabled: false

0 comments on commit e15bc58

Please sign in to comment.