Docker image for building Ubuntu (amd64/i386/armhf/arm64) snaps

Rex Tsai rex.tsai at canonical.com
Thu Sep 22 13:24:32 UTC 2016


This image includes toolchains and snapcraft to help app developers (and
hardware enablement engineers) who don't have a Ubuntu installation to
build a snap software package.

It's also support building snap on amd64, i386 (native and amd64
architecture), armhf (native and amd64 architecture), arm64 (native and
amd64 architecture). That help an app developer to cross build a arm-based
snap from amd64.

To use the docker container to build a
#
​ ​
Please put this line in your
${HOME}/.$(basename ${SHELL})rc
​
alias snapcraft-docker='docker run -u $(id -u) -t -i --rm -v $(pwd):/build \
-v ${HOME}/.snap:/build/.snap \
-v ${HOME}/.local/share/snapcraft:/build/.local/share/snapcraft \
snapcraft/xenial-amd64 snapcraft'

snapcraft-docker tour
cd snapcraft-tour/00-SNAPCRAFT/01-easy-start && snapcraft-docker

Please find the README on https://hub.docker.com/r/snapcraft/xenial-amd64/

Cheers
-Rex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160922/383c9bd9/attachment.html>


More information about the Snapcraft mailing list