~snappy-dev/snappy-hub/owncloud

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
It is just a little proof of concept owncloud package.

To build it:
snappy build package-dir
then copy it to your snappy instance and install it:
snappy install owncloud_XXXXX_amd64.snap

It will create a new systemd unit launching a docker run command.
So it will fetch the images it need for launching owncloud.
It takes some time for now depending on your connection (for now near 600MB).
When you have an https redirection while issuing "sudo iptables -L" it is up and running and you can brows to https://your.snappy.ip

If you want to avoid to re-download each time you test, 
'docker images' will list the downloaded images, like kickinz1/owncloud in this case
docker save -o big-owncloud.tar kickinz1/big-owncloud
bzpi2 big-owncloud.tar
save it for later use
when you need to restore it:
copy it to /apps/docker/current/
and then
docker load -i /apps/docker/current/big-owncloud.tar.bz2
if you need space on your snappy image you can now remove the /apps/docker/current/big-owncloud.tar.bz2 file.
It will still take some time but much less than if downloading again.