Skip to content

canonical/offline-agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offline Agent - sideload snaps

An example web service that allows a snap that has been downloaded (usually via snap download) to be installed. The service listens on http://localhost:5000 and needs the restricted snapd-control interface to be connected.

Download a snap and copy the file and assertion to /mnt. Then run:

curl http://localhost:5000/snap-name/snap-revision

For example:

snap download chuck-norris-webserver
sudo cp chuck-norris-webserver_16.* /mnt/
curl -v http://localhost:5000/chuck-norris-webserver/16

Snapd installations are asynchronous, so installation will not occur immediately.

About

Example snapd agent in node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%