Skip to content

Instantly share code, notes, and snippets.

@errordeveloper
Created September 16, 2014 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save errordeveloper/40bcb99269005c075a26 to your computer and use it in GitHub Desktop.
Save errordeveloper/40bcb99269005c075a26 to your computer and use it in GitHub Desktop.
Dockerfile snippets for Yocto
FROM gmacario/build-yocto
VOLUME [ "/home/build" ]
USER root
RUN chown build. /home/build
USER build
ENV HOME /home/build
CMD [ "-c", "cd $HOME; git clone --branch daisy --reference /opt/yocto/poky git://git.yoctoproject.org/poky; cd poky; export MACHINE=beaglebone; source oe-init-build-env; bitbake core-image-minimal" ]
FROM gmacario/build-yocto
VOLUME [ "/home/build" ]
USER root
RUN chown build. /home/build
USER build
ENV HOME /home/build
CMD [ "-c", "cd $HOME/poky; export MACHINE=beaglebone; source oe-init-build-env; bash -l" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment