Skip to content

Add docker dev build targets#9426

Merged
jasonodonnell merged 7 commits into
masterfrom
docker-dev
Jul 20, 2020
Merged

Add docker dev build targets#9426
jasonodonnell merged 7 commits into
masterfrom
docker-dev

Conversation

@jasonodonnell
Copy link
Copy Markdown
Contributor

This adds a slightly modified copy of the docker-vault Dockerfile to the repo for building and testing dev Vault builds. This is helpful if you want to test development changes of Vault in Docker.

@jasonodonnell jasonodonnell requested a review from a team July 8, 2020 18:11
Copy link
Copy Markdown
Collaborator

@raskchanky raskchanky left a comment

Choose a reason for hiding this comment

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

Everything here looks very similar to what I was digging through last week, trying to get a dev build into a Docker container. Thanks for adding this, and doing it in a much cleaner way than I did 😂

Copy link
Copy Markdown
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

Minor (but maybe not) nit: running this new step leaves the resulting binary in linux/amd64 format. build.sh will overwrite $GOPATH/bin/vault so If I run make docker-dev I have to run make dev to get a usable binary on my laptop. Should we customize or duplicate and trim build.sh to only compile this binary in linux/amd64 format in some temp directory, and then after successfully building the docker image then clean it up?

Comment thread scripts/docker/Dockerfile Outdated
Comment thread Makefile
@jasonodonnell
Copy link
Copy Markdown
Contributor Author

@catsby I added the multi-stage build

@jasonodonnell jasonodonnell changed the title Add docker dev build target Add docker dev build targets Jul 9, 2020
Copy link
Copy Markdown
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

LGTM I tested both targets. It looks like the test test-race failure is unrelated

@jasonodonnell jasonodonnell merged commit e6ec457 into master Jul 20, 2020
@jasonodonnell jasonodonnell deleted the docker-dev branch July 20, 2020 18:11
pull Bot pushed a commit to NOUIY/vault that referenced this pull request Sep 18, 2025
…icorp#9426) (hashicorp#9440)

This reverts commit a55e884517a7c1f25e097a52e1555d4f81137068.

Co-authored-by: Ryan Cragun <me@ryan.ec>
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.

4 participants