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

Add docker-build target #425

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

lentzi90
Copy link
Member

This adds a docker-build make target for building the container image. The Dockerfile is also expanded to build the releasetags preprocessor in a build container instead of copying from the host.

The mdbook version is taken from the Makfile as an argument. The rust version is bumped since the old version could not build the newer mdbook version. (The versions in the Dockerfile and Makefile were different.)

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 10, 2024
@lentzi90
Copy link
Member Author

It seems like we have not published a new container image for this in ~2 years. How about we just always build it locally? I don't see much need for publishing this image and if we always build locally there is one less thing to worry about.
The build and serve make targets already depend on the image so it would be trivial to make them depend on building the image also, instead of pulling it.

@lentzi90
Copy link
Member Author

/cc @peppi-lotta

@peppi-lotta
Copy link
Member

Excellent change in my opinion! Works great.

/lgtm

@metal3-io-bot
Copy link
Contributor

@peppi-lotta: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Excellent change in my opinion! Works great.

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tuminoid
Copy link
Member

It doesn't seem to work unless built with make docker-build that feeds the mdbook version. Can we have sensible default for that, so it works if you just docker build ... it?

@lentzi90
Copy link
Member Author

Sure I can add some default version!

This adds a docker-build make target for building the container image.
The Dockerfile is also expanded to build the releasetags preprocessor in
a build container instead of copying from the host.

The mdbook version is taken from the Makfile as an argument. The rust
version is bumped since the old version could not build the newer mdbook
version. (The versions in the Dockerfile and Makefile were different.)

Signed-off-by: Lennart Jern <lennart.jern@est.tech>
Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

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

/lgtm

Works like a charm, thanks!

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label May 13, 2024
@lentzi90
Copy link
Member Author

/cc @kashifest @dtantsur

Copy link
Member

@kashifest kashifest left a comment

Choose a reason for hiding this comment

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

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kashifest

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 23, 2024
@metal3-io-bot metal3-io-bot merged commit 0802e16 into metal3-io:main May 23, 2024
7 checks passed
@metal3-io-bot metal3-io-bot deleted the lentzi90/docker-build branch May 23, 2024 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants