Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getnikola/nikola
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6ac8b5091db9
Choose a base ref
...
head repository: getnikola/nikola
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 09e22dffe8a4
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jun 16, 2016

  1. better instructions

    ralsina committed Jun 16, 2016
    Copy the full SHA
    91858b7 View commit details
  2. do confined snap

    ralsina committed Jun 16, 2016
    Copy the full SHA
    09e22df View commit details
Showing with 16 additions and 4 deletions.
  1. +14 −2 snapcraft/README
  2. +2 −2 snapcraft/snapcraft.yaml
16 changes: 14 additions & 2 deletions snapcraft/README
Original file line number Diff line number Diff line change
@@ -5,13 +5,25 @@ To build, in Ubuntu 16.04:
apt install snapd snapcraft
snap login some.account@whatever.com
snapcraft
snapd install nikola*snap --devmode
cp nikola.py stage/usr/bin/nikola
snapcraft
snap install nikola*snap --devmode

See that --devmode there? That makes Nikola run unconfined, giving it access
to all your files. That sounds bad, but it's the same way you have run it
in the past.

If you want to run it in confined mode ... you can!
The only problems are:

* Your site needs to live in ~/snaps/nikola/x1/whatever (the x1 may change)
* If you uninstall nikola it will kill your site ;-)

To just use it:

apt install snapd snapcraft
snap login some.account@whatever.com
snap install nikola
snap install nikola --devmode


That should leave you with a woring "nikola" command, which is functional with the
4 changes: 2 additions & 2 deletions snapcraft/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -2,11 +2,12 @@ name: nikola
version: 7.7.9
summary: A static website generator
description: A static website generator
confinement: devmode
confinement: strict

apps:
nikola:
command: nikola.sh
plugs: [network, network-bind]

parts:
nikola:
@@ -28,4 +29,3 @@ parts:
- libxslt1-dev
- libxml2-dev
- gcc