[go: up one dir, main page]

Skip to content

A script that can be executed in a dockerfile to have a working snapcraft installation.

License

Notifications You must be signed in to change notification settings

gergof/docker-install-snapcraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

docker-install-snapcraft

A script that can be executed in a dockerfile to have a working snapcraft installation.

You can not by default install snapd in a docker container, so you can use this script to have a working installation of snapcraft.

This is inspired by the snapcraft dockerfile.

Usage

Paste this into your dockerfile:

RUN apt-get update && \
	wget https://raw.githubusercontent.com/gergof/docker-install-snapcraft/master/docker-install-snapcraft.sh && \
	chmod +x docker-install-snapcraft.sh && \
	./docker-install-snapcraft.sh 16

ENV LANG="en_US.UTF-8"
ENV LANGUAGE="en_US:en"
ENV LC_ALL="en_US.UTF-8"
ENV PATH="/snap/bin:/snap/snapcraft/current/usr/bin:$PATH"
ENV SNAP="/snap/snapcraft/current"
ENV SNAP_NAME="snapcraft"
ENV SNAP_ARCH="amd64"

The script accepts one parameter, the ubuntu series number. This can be requested by running snap version. It defaults to 16 (used for ubuntu xenial and debian 10).

About

A script that can be executed in a dockerfile to have a working snapcraft installation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages