An unofficial Docker image for build snaps
1.1K
This repository is an unofficial build for cross-build purpose. Please use the official build snapcraft if you need newer version of snapcraft.
If you have questions or issues with this docker image, feel free to report bug on https://github.com/chihchun/snapcraft-docker/issues
This image includes toolchains and Snapcraft to help app and hardware enablement engineers to build a snap software package and Ubuntu Core image from Ubuntu or other Docker supported platform.
Supported architectures
You can run the docker image by using this script
# Download & Install
wget https://raw.githubusercontent.com/chihchun/snapcraft-docker/master/snapcraft-docker
chmod u+x snapcraft-docker
export PATH=${PWD}:$PATH
# Use the snapcraft command
snapcraft-docker -v
snapcraft-docker -h
snapcraft-docker tour
cd snapcraft-tour/00-SNAPCRAFT/01-easy-start && snapcraft-docker
If you like to build i386 snap on amd64 hardware platform, please run the command ARCH=i386 snapcraft-docker
You can run the armhf and arm64 images on native arm architecture platform.
# Running arm64 image
export ARCH=arm64
snapcraft-docker tour
cd snapcraft-tour/00-SNAPCRAFT/01-easy-start && snapcraft-docker
If you like to build arm target snap on amd64 hardware platform, please install qemu-user-static on the docker host machine.
sudo apt-get install qemu-user-static
You can a shell in the container, and run the following command to build a prime folder. You can hack around in the prime folder, then run snapcraft snap to build the final snap package.
snapcraft-docker bash
snapcraft prime
# hack, hack, hack
snapcraft snap
Please report issues to https://github.com/chihchun/snapcraft-docker/issues
Content type
Image
Digest
Size
319.1 MB
Last updated
over 8 years ago
docker pull snapcraft/zesty-amd64