Skip to content

Dockerfile and bash wrapper script to build snaps using Docker containers

License

Notifications You must be signed in to change notification settings

uroesch/snapcraft-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snapcraft Build Container for Docker

This is a Dockerfile and a wrapper script called snapcraft-docker which helped me build my first snap.

Note
The code and instructions are provided as is.

Docker Build

sudo docker pull snapcore/snapcraft
git clone https://github.com/uroesch/snapcraft-docker.git
cd snapcraft-docker
sudo docker build -t snapcore/snapcraft:custom .
Note
To make the container work for your environment you may need to set the environment variable BUILD_USER_ID to your own UID before running docker build. The default UID is 1000.

Building a Snap with snapcraft-docker

cd mysnap
snapcraft-docker
Note
The above example assumes you have copied the snapcraft-docker script into a directory referenced in your PATH.

About

Dockerfile and bash wrapper script to build snaps using Docker containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published