-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.moban.yaml
54 lines (52 loc) · 1.61 KB
/
.moban.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
image:
name: django-mobans-pg-image
version: 0.1
maintainer: [email protected]
parent: postgres:10-alpine
comment:
Equivalent of cookiecutter-django file
compose/production/postgres/Dockerfile
using postgres 10 but using alpine as the base.
inherit:
cmd: true
entrypoint: true
expose: true
apk:
- bash
set_executable_on_copy: true
copy:
- docker-healthcheck: /usr/local/bin/
- command-entrypoint.sh: /usr/local/bin/
- maintenance/backup: /usr/local/bin/
- maintenance/restore: /usr/local/bin/
- maintenance/backups: /usr/local/bin/
- maintenance/_sourced/constants.sh: /usr/local/bin/_sourced/
- maintenance/_sourced/countdown.sh: /usr/local/bin/_sourced/
- maintenance/_sourced/messages.sh: /usr/local/bin/_sourced/
- maintenance/_sourced/yes_no.sh: /usr/local/bin/_sourced/
healthcheck:
interval: 5m
timeout: 15s
start_period: 30s
cmd: 'docker-healthcheck || exit 1'
requires:
- https://github.com/docker-library/healthcheck
- https://github.com/pydanny/cookiecutter-django
configuration:
configuration: .moban.yaml
template_dir:
- 'healthcheck:'
- ../docker-mobans/.moban.dt/
- 'cookiecutter-django:'
configuration_dir: .
targets:
- Dockerfile: Dockerfile.jj2
- .dockerfile_lint_rules.yaml: dockerfile_lint_rules.yaml.jj2
- .gitlab-ci.yml: gitlab-ci.yml.jj2
- .travis.yml: travis.yml.jj2
copy:
- .coafile: .coafile
- .gitignore: .gitignore
- docker-healthcheck: postgres/docker-healthcheck
- maintenance: '{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/**'
- hooks/build: hooks/build