-
Notifications
You must be signed in to change notification settings - Fork 3
/
.snapcraft.yaml
69 lines (59 loc) · 1.46 KB
/
.snapcraft.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: askgod
base: core22
version: git
grade: stable
summary: Askgod Scoring System - client
description: |-
The Askgod Scoring System was written by the organizers of NorthSec.
It's designed for Capture The Flag (CTF) type events where a number of
teams compete on a leaderboard through points they score by sending
"flags" to the scoring system.
This package contains the client for the Askgod REST API and defaults
to interacting with the on-site instance of NorthSec.
The package also contains the server but ships in disabled mode by default.
confinement: strict
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
- build-on: ppc64el
- build-on: s390x
apps:
askgod:
command: bin/askgod
plugs:
- network
discourse:
command: bin/askgod-discourse $SNAP_COMMON/discourse.yaml
daemon: simple
install-mode: disable
restart-condition: always
restart-delay: 5s
plugs:
- network
- network-bind
server:
command: bin/askgod-server $SNAP_COMMON/server.yaml
daemon: simple
install-mode: disable
restart-condition: always
restart-delay: 5s
plugs:
- network
- network-bind
parts:
askgod:
source: .
plugin: go
build-snaps:
- go
prime:
- bin/askgod
- bin/askgod-server
askgod-discourse:
source: https://github.com/nsec/askgod-discourse
source-type: git
source-depth: 1
plugin: go
prime:
- bin/askgod-discourse