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 dockerfile to create a docker container that builds yocto images #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jhoshiko
Copy link
Contributor

Added a dockerfile for building a docker container that can build yocto images. Included yocto release files that are unzipped when building the docker container.

@couryrr-afs @drmrd This PR has a simple dockerfile that is automated to build the yocto core-image-minimal target. You can edit this file to add steps for custom layers and change the target to another.

From running the oe-init-build-env script:

You can now run 'bitbake <target>

Common targets are:
    core-image-minimal
    core-image-full-cmdline
    core-image-sato
    core-image-weston
    meta-toolchain
    meta-ide-support

I built the dockerfile following the steps found here, which I would recommend referring to when you edit the dockerfile.

…ncluded yocto release files

Signed-off-by: Joshua Hoshiko <Joshua.Hoshiko@nrel.gov>
@shankari
Copy link
Collaborator

@jhoshiko can you fix the issues/best practices reported by the static code analysis?

@drmrd
Copy link
Contributor

drmrd commented Mar 22, 2024

Thanks for this, @jhoshiko! I will give it a try on my system as I'm experimenting with building Yocto-based distros.

Out of curiosity. Is there a reason you built an image manually rather than using the CROPS image that is recommended in recent editions of the Yocto Project Quick Build?

@drmrd
Copy link
Contributor

drmrd commented Mar 22, 2024

Ah I just realized that the reasons can be gleaned from discussions on the private issue tracker for our project. It would be great to have those findings summarized and captured in a README.md in the same directory as the Dockerfile.

…pt-get lists, updated dockerfile to use WORKDIR

Signed-off-by: Joshua Hoshiko <Joshua.Hoshiko@nrel.gov>
@jhoshiko
Copy link
Contributor Author

can you fix the issues/best practices reported by the static code analysis?

@shankari updated!

@shankari
Copy link
Collaborator

@jhoshiko can you confirm that you have built the yocto image after these changes, and that it works?

@jhoshiko
Copy link
Contributor Author

@shankari The image is building for me, but similar to when we were building them before, I run out of memory and it crashes before it can complete. I'll need someone with a beefy workstation who can test this to completion.

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.

3 participants