Skip to content

feat(aws-vault-proxy): use multi-stage docker builds and static binary#305

Merged
mbevc1 merged 1 commit intoByteNess:mainfrom
gdamjan:proxy
Feb 19, 2026
Merged

feat(aws-vault-proxy): use multi-stage docker builds and static binary#305
mbevc1 merged 1 commit intoByteNess:mainfrom
gdamjan:proxy

Conversation

@gdamjan
Copy link

@gdamjan gdamjan commented Feb 19, 2026

this decreases the image size from ~970MB to ~10MB

@gdamjan gdamjan requested a review from mbevc1 as a code owner February 19, 2026 18:10
@mbevc1
Copy link
Contributor

mbevc1 commented Feb 19, 2026

Thanks for your contribution @gdamjan . Would you mind please fixing PR checks?

this decreases the image size from ~970MB to ~10MB

temporarily removed the healthcheck from docker-compose that expects
`pgrep` to be available (it IS meaningless too)
@gdamjan gdamjan changed the title aws-vault-proxy: use multi-stage docker builds and static binary feat: aws-vault-proxy: use multi-stage docker builds and static binary Feb 19, 2026
@gdamjan
Copy link
Author

gdamjan commented Feb 19, 2026

oh, does it check the commit or the PR title?

@github-actions github-actions bot added the feat label Feb 19, 2026
@gdamjan
Copy link
Author

gdamjan commented Feb 19, 2026

ook.

I've temporarily removed the healthcheck from docker-compose that expects pgrep to be available, it was meaningless too, since the container only runs a single executable.

I'll create another PR with a better healthcheck.

@mbevc1
Copy link
Contributor

mbevc1 commented Feb 19, 2026

Yes, there is a conventional commit check set up, thanks

Comment on lines -18 to -19
healthcheck:
test: pgrep aws-vault-proxy
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add something else or leave this still?

Copy link
Author

Choose a reason for hiding this comment

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

it's a single process docker, it does not make sense to check the process existence. if the process does not exists, the docker container will not exist either.

I'll add a http health check separately.

Copy link
Author

Choose a reason for hiding this comment

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

and, there's no longer pgrep in the image (if it was not clear)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, indeed 😄

@mbevc1 mbevc1 changed the title feat: aws-vault-proxy: use multi-stage docker builds and static binary feat (aws-vault-proxy): use multi-stage docker builds and static binary Feb 19, 2026
@mbevc1 mbevc1 changed the title feat (aws-vault-proxy): use multi-stage docker builds and static binary feat(aws-vault-proxy): use multi-stage docker builds and static binary Feb 19, 2026
@mbevc1 mbevc1 merged commit d703e5c into ByteNess:main Feb 19, 2026
16 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants