Ubuntu Pastebin

Paste from Erik Arfvidson at Wed, 23 Mar 2016 15:32:55 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: unisys-test
version: 1.0
# The vendor for the snap (replace 'Vendor <email@example.com>')
vendor: erik.arfvidson@unisys.com
summary: This app serves a simple webpage with a helloworld.html
description: A basic webserver hello world application
icon: icon.png
#config: usr/bin/config.py
apps:
  webui:
    command: bin/webui
    daemon: simple
    plugs: [listener]
plugs:
  listener:
    interface: old-security
    caps: [network-listener]

parts:
  golang-static-http:
    plugin: go
    go-packages: 
        - git://github.com/mikix/golang-static-http
    stage-packages:
      - nmap
    filesets:
      nmap:
        - usr/bin/nmap
        - lib
        - usr/lib
      go-server:
        - bin/golang-*
    stage:
      - $nmap
      - $go-server
    snap:
      - $nmap
      - $go-server
      - -usr/share.doc
  glue:
    plugin: copy
    files:
      webui: bin/webui
#  config:
#    plugin: python3
#    sources: .
Download as text