Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Dockerfile architecture fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanraic committed Feb 16, 2024
1 parent 4861d55 commit 6bbe098
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions charts/bwsm-eso-provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: v2
name: bwsm-eso-provider
description: Helm chart to use Bitwarden Secrets Manaager (BWSM) as a Provider for External Secrets Operator (ESO)
type: application
version: 0.0.7
version: 0.0.8
# renovate: image=bojanraic/bwsm-eso
appVersion: "0.0.7"
appVersion: "0.0.8"
icon: https://bojanraic.github.io/bitwarden-secrets-manager-eso/chart-icon.png
maintainers:
- name: "Bojan Raic"
Expand Down
2 changes: 1 addition & 1 deletion charts/bwsm-eso-provider/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bwsm-eso-provider

![Version: 0.0.7](https://img.shields.io/badge/Version-0.0.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.7](https://img.shields.io/badge/AppVersion-0.0.7-informational?style=flat-square)
![Version: 0.0.8](https://img.shields.io/badge/Version-0.0.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.8](https://img.shields.io/badge/AppVersion-0.0.8-informational?style=flat-square)

Helm chart to use Bitwarden Secrets Manaager (BWSM) as a Provider for External Secrets Operator (ESO)

Expand Down
9 changes: 4 additions & 5 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
ARG ARCH=amd64 \
BWS_VERSION=0.4.0 \
ARG BWS_VERSION=0.4.0 \
BWS_DL_ARCH=x86_64 \
NODE_ENV=production \
PORT=8080 \
WORKDIR=/app

FROM --platform=linux/${ARCH} cgr.dev/chainguard/node-lts as base
FROM cgr.dev/chainguard/node-lts as base
ARG WORKDIR BWS_DL_ARCH
WORKDIR $WORKDIR
COPY . .
Expand All @@ -14,15 +13,15 @@ ENV NODE_ENV=$NODE_ENV \
BWS_ACCESS_TOKEN=
RUN npm ci --omit=dev

FROM --platform=linux/${ARCH} busybox:stable-uclibc as bws
FROM busybox:stable-uclibc as bws

ARG BWS_VERSION WORKDIR BWS_DL_ARCH
WORKDIR $WORKDIR

ADD https://github.com/bitwarden/sdk/releases/download/bws-v${BWS_VERSION}/bws-${BWS_DL_ARCH}-unknown-linux-gnu-${BWS_VERSION}.zip /tmp/bws.zip
RUN unzip /tmp/bws.zip -d . && rm -rf /tmp/* && chmod +x ./bws

FROM --platform=linux/${ARCH} cgr.dev/chainguard/node-lts as runner
FROM cgr.dev/chainguard/node-lts as runner
ARG WORKDIR NODE_ENV PORT
ENV WORKDIR=$WORKDIR \
BWS_CLI_PATH=$WORKDIR/bws \
Expand Down
4 changes: 2 additions & 2 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bwsm-eso",
"version": "0.0.7",
"version": "0.0.8",
"description": "This is a Bitwarden Secrets Manager ESO wrapper based on the OpenAPI 3.0 specification.",
"license": "AGPL-3.0-only",
"type": "module",
Expand Down

0 comments on commit 6bbe098

Please sign in to comment.