This repository was archived by the owner on Jan 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdc.deb.yml
81 lines (79 loc) · 2.01 KB
/
dc.deb.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
---
version: '3.6'
services:
deb-build:
build:
context: ./deb-builder/
command:
# source
- '--input-type'
- 'dir'
# target type
- "--output-type"
- "deb"
# package name
- "--name"
- "moodle-docker"
#
- "--version"
- "${PHP_VERSION}-${MOODLE_VERSION}"
#
- "--iteration"
- "v0.1.4"
#
- "--deb-changelog"
- "/package/CHANGELOG.md"
#
- "--license"
- "MIT"
#
- "--vendor"
- "Security Compass <[email protected]>"
#
- "--category"
- "web"
#
- "--maintainer"
- "Security Compass <[email protected]>"
#
- "--category"
- "web"
#
- "--deb-priority"
- "optional"
#
- "--description"
- "Docker based Moodle Deployment\nThis project deploys the Moodle (Modular Object-Oriented Dynamic Learning\nEnvironment) course management system using one Docker container that runs\nboth Nginx and PHP/PHP-FPM services"
#
- "--url"
- "https://www.securitycompass.com/"
#
- "--deb-field"
- "Vcs-Browser: https://github.com/SecurityCompass/moodle-docker"
#
- "--after-install"
- "/package/systemd/postinst.sh"
#
- "--before-remove"
- "/package/systemd/prerm.sh"
# Package dependencies
- "--depends"
- "docker-ce > 18"
# Overwrite existing DEB file
- "--force"
# Enables INFO output
- "--verbose"
# Files to package
- "/package/.env=/etc/moodle-docker/.env.example"
- "/package/conf=/etc/moodle-docker/"
- "/package/dc.prod-dbonly.yml=/etc/moodle-docker/"
- "/package/docker-compose.yml=/etc/moodle-docker/"
- "/package/systemd/moodle-docker.service=/lib/systemd/system/"
environment:
MOODLE_VERSION: "${MOODLE_VERSION}"
PHP_VERSION: "${PHP_VERSION}"
image: fpm:deb
volumes:
- type: bind
source: ${PWD}
target: /package