Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEEEP] - Docker image for bws #305

Merged
merged 32 commits into from
Jan 11, 2024
Merged

[BEEEP] - Docker image for bws #305

merged 32 commits into from
Jan 11, 2024

Conversation

tangowithfoxtrot
Copy link
Contributor

@tangowithfoxtrot tangowithfoxtrot commented Oct 24, 2023

Type of change

Add a bws Dockerfile.

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

This allows us to publish a bitwarden/bws docker image. Multi-arch images can be built with the following command:

docker buildx build -f ./crates/bws/Dockerfile --push -t bitwarden/bws --platform linux/amd64,linux/arm64 .

Code changes

  • Dockerfile: add file

Before you submit

  • Please add unit tests where it makes sense to do so (encouraged but not required)

@bitwarden-bot
Copy link

bitwarden-bot commented Oct 24, 2023

Logo
Checkmarx One – Scan Summary & Details4955e765-f615-43c3-9581-84db435a8a97

New Issues

Severity Issue Source File / Package Checkmarx Insight
HIGH Missing User Instruction /Dockerfile: 23 A user should be specified in the dockerfile, otherwise the image will run as root
MEDIUM Apt Get Install Pin Version Not Defined /Dockerfile: 9 When installing a package, its pin version should be defined
MEDIUM Using Platform Flag with FROM Command /Dockerfile: 4 Don't use '--platform' flag with FROM
LOW Healthcheck Instruction Missing /Dockerfile: 23 Ensure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working

@tangowithfoxtrot tangowithfoxtrot changed the title [BEEEP] - Add a Dockerfile for bws [BEEEP] - Docker image for bws Oct 25, 2023
.github/workflows/build-cli-docker.yml Outdated Show resolved Hide resolved
.github/workflows/build-cli-docker.yml Outdated Show resolved Hide resolved
.github/workflows/build-cli-docker.yml Outdated Show resolved Hide resolved
.github/workflows/build-cli-docker.yml Show resolved Hide resolved
.github/workflows/build-cli-docker.yml Outdated Show resolved Hide resolved
tangowithfoxtrot and others added 4 commits October 30, 2023 08:45
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com>
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com>
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com>
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com>
tangowithfoxtrot and others added 2 commits October 30, 2023 08:53
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com>
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com>
tangowithfoxtrot and others added 2 commits October 30, 2023 09:42
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com>
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com>
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@tangowithfoxtrot tangowithfoxtrot marked this pull request as ready for review November 1, 2023 15:37
@tangowithfoxtrot tangowithfoxtrot requested a review from a team as a code owner November 1, 2023 15:37
@tangowithfoxtrot tangowithfoxtrot dismissed michalchecinski’s stale review November 1, 2023 15:38

Dockerfile was moved to ./crates/bws

.github/workflows/build-cli-docker.yml Outdated Show resolved Hide resolved
.github/workflows/build-cli-docker.yml Show resolved Hide resolved
.github/workflows/build-cli-docker.yml Outdated Show resolved Hide resolved
tangowithfoxtrot and others added 3 commits November 3, 2023 13:02
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
tangowithfoxtrot and others added 2 commits November 17, 2023 07:44
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
crates/bws/.dockerignore Outdated Show resolved Hide resolved
crates/bws/Dockerfile Outdated Show resolved Hide resolved
.github/workflows/build-cli-docker.yml Show resolved Hide resolved
crates/bws/.dockerignore Outdated Show resolved Hide resolved
crates/bws/Dockerfile Outdated Show resolved Hide resolved
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
Copy link
Contributor

@michalchecinski michalchecinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @vgrassia since you added few suggestions please also check if everything is good for you 😃

@tangowithfoxtrot tangowithfoxtrot dismissed vgrassia’s stale review December 8, 2023 16:51

additional target architectures don't compile

vgrassia
vgrassia previously approved these changes Jan 10, 2024
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b385d2d) 49.51% compared to head (ff39b87) 49.51%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #305   +/-   ##
=======================================
  Coverage   49.51%   49.51%           
=======================================
  Files         154      154           
  Lines        7398     7398           
=======================================
  Hits         3663     3663           
  Misses       3735     3735           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vgrassia vgrassia self-requested a review January 11, 2024 16:09
@tangowithfoxtrot tangowithfoxtrot merged commit bbc47bb into main Jan 11, 2024
46 checks passed
@tangowithfoxtrot tangowithfoxtrot deleted the bws-docker-image branch January 11, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants