Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for building snap packages (#174)
* Add support for building snap packages This branch makes a few changes to support running the exo binary from a snap package (https://snapcraft.io). * Don't build with -j2 Turns out our build was running the build step (go build) and the clean step (go clean) in parallel. Make sure snapcraft runs Makefile targets with -j1 (like on a default local machine). * Make store-mandated changes Also add comments to the snap file pointing to the forum-based process.
- Loading branch information
1 parent
a7919e9
commit a69dbd0
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ exo | |
manpage | ||
contrib | ||
cli | ||
*.snap | ||
*.xdelta3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: exoscale-cli | ||
base: core18 | ||
version: git | ||
summary: The Exoscale command line tool | ||
description: | | ||
The Exoscale command line tool. | ||
This snap allows you to use the "exo" command once installed, your | ||
gateway to the Exoscale platform. | ||
Usage: sudo snap install exoscale-cli; exo config; exo vm list | ||
grade: stable # must be 'stable' to release into candidate/stable channels | ||
confinement: strict # use 'strict' once you have the right plugs and slots | ||
|
||
plugs: | ||
# This allows us to read/write in $HOME/.exoscale/* | ||
# It was granted via a forum post and is autoconnected. | ||
# Do not change the plug name. | ||
dot-exoscale: | ||
interface: personal-files | ||
write: | ||
- $HOME/.exoscale | ||
|
||
apps: | ||
# The app has an alias to "exo" that was granted via forum post. | ||
exoscale-cli: | ||
command: exo | ||
plugs: | ||
- network | ||
- home | ||
- dot-exoscale | ||
|
||
parts: | ||
exo: | ||
# See 'snapcraft plugins' | ||
disable-parallel: True | ||
plugin: make | ||
source: . | ||
artifacts: | ||
- exo | ||
build-snaps: | ||
- go | ||
build-packages: | ||
- git |