-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker.yml
53 lines (45 loc) · 1.31 KB
/
docker.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
maintainer: Pavel Raiskup <[email protected]>
expose: [5432]
parts:
labels:
data:
- name: INSTALL
value: !eval macros['atomic_install']
- name: UNINSTALL
value: !eval macros['atomic_uninstall']
pkginstall:
data:
- type: "pkg"
action: "install"
packages: [ postgresql-server ]
# Reinstall glibc-common to fix locale issues (rhbz#1129697)
- type: "pkg"
action: "update"
packages: ["glibc-common"]
- type: "pkg"
action: "reinstall"
packages: ["glibc-common"]
volumes:
data:
- path: /var/lib/pgsql/data
addfiles:
data:
- type: files
files: [ root ]
dest: /
commands:
data:
- type: shell
action: "systemctl disable console-getty.service"
- type: shell
action: "systemctl enable postgresql-container.service"
# For the default PostgreSQL container, we'll start cont-postgresql-cmd
# binary when container-entrypoint is executed. Layers above us should
# replace this symlink!
- type: shell
action: touch /var/lib/pgsql/data/.container_internal && chown 26:26 /var/lib/pgsql/data
- type: shell
action: !eval "macros['container_build']"
footer:
entry: [!eval "macros['container_entrypoint']"]
user: postgres