-
Notifications
You must be signed in to change notification settings - Fork 2
/
postgres_config.json
185 lines (185 loc) · 10.7 KB
/
postgres_config.json
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{
"architecture": "amd64",
"config": {
"ExposedPorts": {
"5432/tcp": {}
},
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin",
"GOSU_VERSION=1.16",
"LANG=en_US.utf8",
"PG_MAJOR=16",
"PG_VERSION=16.0-1.pgdg120+1",
"PGDATA=/var/lib/postgresql/data"
],
"Entrypoint": [
"docker-entrypoint.sh"
],
"Cmd": [
"postgres"
],
"Volumes": {
"/var/lib/postgresql/data": {}
},
"StopSignal": "SIGINT",
"ArgsEscaped": true,
"OnBuild": null
},
"created": "2023-09-14T18:21:14Z",
"history": [
{
"created": "2023-09-14T18:21:14Z",
"created_by": "/bin/sh -c #(nop) ADD file:a1398394375faab8dd9e1e8d584eea96c750fb57ae4ffd2b14624f1cf263561b in / "
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "/bin/sh -c #(nop) CMD [\"bash\"]",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c set -eux; \tgroupadd -r postgres --gid=999; \tuseradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; \tmkdir -p /var/lib/postgresql; \tchown -R postgres:postgres /var/lib/postgresql # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c set -ex; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tgnupg \t; \trm -rf /var/lib/apt/lists/* # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "ENV GOSU_VERSION=1.16",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c set -eux; \tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends ca-certificates wget; \trm -rf /var/lib/apt/lists/*; \tdpkgArch=\"$(dpkg --print-architecture | awk -F- '{ print $NF }')\"; \twget -O /usr/local/bin/gosu \"https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch\"; \twget -O /usr/local/bin/gosu.asc \"https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc\"; \texport GNUPGHOME=\"$(mktemp -d)\"; \tgpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \tgpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\" /usr/local/bin/gosu.asc; \tapt-mark auto '.*' > /dev/null; \t[ -z \"$savedAptMark\" ] || apt-mark manual $savedAptMark > /dev/null; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \tchmod +x /usr/local/bin/gosu; \tgosu --version; \tgosu nobody true # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c set -eux; \tif [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then \t\tgrep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; \t\tsed -ri '/\\/usr\\/share\\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; \t\t! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; \tfi; \tapt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; \tlocaledef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "ENV LANG=en_US.utf8",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c set -eux; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tlibnss-wrapper \t\txz-utils \t\tzstd \t; \trm -rf /var/lib/apt/lists/* # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c set -ex; \tkey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; \texport GNUPGHOME=\"$(mktemp -d)\"; \tmkdir -p /usr/local/share/keyrings/; \tgpg --batch --keyserver keyserver.ubuntu.com --recv-keys \"$key\"; \tgpg --batch --export --armor \"$key\" > /usr/local/share/keyrings/postgres.gpg.asc; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\" # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "ENV PG_MAJOR=16",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "ENV PG_VERSION=16.0-1.pgdg120+1",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c set -ex; \t\texport PYTHONDONTWRITEBYTECODE=1; \t\tdpkgArch=\"$(dpkg --print-architecture)\"; \taptRepo=\"[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR\"; \tcase \"$dpkgArch\" in \t\tamd64 | arm64 | ppc64el | s390x) \t\t\techo \"deb $aptRepo\" > /etc/apt/sources.list.d/pgdg.list; \t\t\tapt-get update; \t\t\t;; \t\t*) \t\t\techo \"deb-src $aptRepo\" > /etc/apt/sources.list.d/pgdg.list; \t\t\t\t\t\tsavedAptMark=\"$(apt-mark showmanual)\"; \t\t\t\t\t\ttempDir=\"$(mktemp -d)\"; \t\t\tcd \"$tempDir\"; \t\t\t\t\t\tapt-get update; \t\t\tapt-get install -y --no-install-recommends dpkg-dev; \t\t\techo \"deb [ trusted=yes ] file://$tempDir ./\" > /etc/apt/sources.list.d/temp.list; \t\t\t_update_repo() { \t\t\t\tdpkg-scanpackages . > Packages; \t\t\t\tapt-get -o Acquire::GzipIndexes=false update; \t\t\t}; \t\t\t_update_repo; \t\t\t\t\t\tnproc=\"$(nproc)\"; \t\t\texport DEB_BUILD_OPTIONS=\"nocheck parallel=$nproc\"; \t\t\tapt-get build-dep -y postgresql-common pgdg-keyring; \t\t\tapt-get source --compile postgresql-common pgdg-keyring; \t\t\t_update_repo; \t\t\tapt-get build-dep -y \"postgresql-$PG_MAJOR=$PG_VERSION\"; \t\t\tapt-get source --compile \"postgresql-$PG_MAJOR=$PG_VERSION\"; \t\t\t\t\t\t\t\t\tapt-mark showmanual | xargs apt-mark auto > /dev/null; \t\t\tapt-mark manual $savedAptMark; \t\t\t\t\t\tls -lAFh; \t\t\t_update_repo; \t\t\tgrep '^Package: ' Packages; \t\t\tcd /; \t\t\t;; \tesac; \t\tapt-get install -y --no-install-recommends postgresql-common; \tsed -ri 's/#(create_main_cluster) .*$/\\1 = false/' /etc/postgresql-common/createcluster.conf; \tapt-get install -y --no-install-recommends \t\t\"postgresql-$PG_MAJOR=$PG_VERSION\" \t; \t\trm -rf /var/lib/apt/lists/*; \t\tif [ -n \"$tempDir\" ]; then \t\tapt-get purge -y --auto-remove; \t\trm -rf \"$tempDir\" /etc/apt/sources.list.d/temp.list; \tfi; \t\tfind /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S \"$pyc\" &> /dev/null || rm -vf \"$pyc\"; done' -- '{}' +; \t\tpostgres --version # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c set -eux; \tdpkg-divert --add --rename --divert \"/usr/share/postgresql/postgresql.conf.sample.dpkg\" \"/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample\"; \tcp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; \tln -sv ../postgresql.conf.sample \"/usr/share/postgresql/$PG_MAJOR/\"; \tsed -ri \"s!^#?(listen_addresses)\\s*=\\s*\\S+.*!\\1 = '*'!\" /usr/share/postgresql/postgresql.conf.sample; \tgrep -F \"listen_addresses = '*'\" /usr/share/postgresql/postgresql.conf.sample # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "ENV PGDATA=/var/lib/postgresql/data",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "RUN /bin/sh -c mkdir -p \"$PGDATA\" && chown -R postgres:postgres \"$PGDATA\" && chmod 777 \"$PGDATA\" # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "VOLUME [/var/lib/postgresql/data]",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "COPY docker-entrypoint.sh /usr/local/bin/ # buildkit",
"comment": "buildkit.dockerfile.v0"
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "ENTRYPOINT [\"docker-entrypoint.sh\"]",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "STOPSIGNAL SIGINT",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "EXPOSE map[5432/tcp:{}]",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2023-09-14T18:21:14Z",
"created_by": "CMD [\"postgres\"]",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
}
],
"os": "linux",
"rootfs": {
"type": "layers",
"diff_ids": [
"sha256:d310e774110ab038b30c6a5f7b7f7dd527dbe527854496bd30194b9ee6ea496e",
"sha256:525cd30923d4100b87794b75568249c6589ee29ff69fbd0033558e97c5220ac5",
"sha256:b3f6a842ea57509cd70fdc45e4761226ef1d54e5b4e996e33f03f334a4e53f35",
"sha256:d022d178ba6a62895f043a9fb05ebc63090f80b9d17af1e69684f5e42d54e66b",
"sha256:20b552d3c298890293fcb42c761c86309268255e4e8c3b66d7d956ebbbb371ff",
"sha256:90bae9e07c9bfb39e776d1928cea633472725cb7cd27c3115dee5d3d3a036d58",
"sha256:ff1103a8f915d3f13e96df08d2d785d84b3c3385b1b17a1b5b213a2359213ed3",
"sha256:159f5237faf3cd078c2b0cbe3135d1ffff4d865d6bc852a1f270bc91efc7ac27",
"sha256:06b392d56df0bb78a09875dc6c9d67bf3493ec47e9535fb75a38c2957a49ea77",
"sha256:3a3d8e1f1999a5633b0087925b933572b423ac51ebfb8c994e00f8d933baf6af",
"sha256:f23c489b3eb35611c8447a6d165501d88ed0a5d3e4ec23a2ef7c5b430ce642a4",
"sha256:14d55505ea630a85edc865c171681b9d33a3489182d97e6df76d6f111b40b2b2",
"sha256:0c3e5dd40bd1534d2f8d57f8513f70a0b121fc0f93e7bd00f5ac1b7e920f1938"
]
}
}