Use a Docker container environment when building LinuxBoot in the CI
rjoleary opened this issue · 3 comments
rjoleary commented
Tasks:
- Create a Dockerfile. See reference https://docs.docker.com/engine/reference/builder/. See https://github.com/u-root/u-root/blob/master/.circleci/images/test-image-amd64/Dockerfile for ideas.
- The Dockerfile should contain the necessary tooling listed here: https://github.com/linuxboot/mainboards/blob/master/.github/workflows/ci.yml#L69
- Follow instructions here for creating a container action: https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action
- Use the
container
field to make use of the container: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontainer - Document the steps to update the Docker container.
rjoleary commented
Also, one important thing brought up in a recent call: It should still be possible to build the mainboards without docker. The docker container is available just to make the build system easier to download and more reproducible.
orangecms commented
we'll have GitHub Actions build images for us and provide simple build tools to reproduce and customize