-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Upgrade to Alpine 3.11 #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,17 +1,13 @@ | ||||
# vim:set ft=dockerfile: | ||||
FROM alpine:%%ALPINE-VERSION%% | ||||
|
||||
# alpine includes "postgres" user/group in base install | ||||
# /etc/passwd:22:postgres:x:70:70::/var/lib/postgresql:/bin/sh | ||||
# /etc/group:34:postgres:x:70: | ||||
# the home directory for the postgres user, however, is not created by default | ||||
# see https://github.com/docker-library/postgres/issues/274 | ||||
RUN set -ex; \ | ||||
postgresHome="$(getent passwd postgres)"; \ | ||||
postgresHome="$(echo "$postgresHome" | cut -d: -f6)"; \ | ||||
[ "$postgresHome" = '/var/lib/postgresql' ]; \ | ||||
mkdir -p "$postgresHome"; \ | ||||
chown -R postgres:postgres "$postgresHome" | ||||
# 70 is the standard uid/gid for "postgres" in Alpine | ||||
# https://git.alpinelinux.org/aports/tree/main/postgresql/postgresql.pre-install?h=3.11-stable | ||||
RUN set -eux; \ | ||||
addgroup -g 70 -S postgres; \ | ||||
adduser -u 70 -S -D -G postgres postgres; \ | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should also set postgres/Dockerfile-debian.template Line 18 in 0d0485c
(and like Alpine has done previously and still does in https://git.alpinelinux.org/aports/tree/main/postgresql/postgresql.pre-install?h=3.11-stable) |
||||
mkdir -p /var/lib/postgresql; \ | ||||
chown -R postgres:postgres /var/lib/postgresql | ||||
|
||||
# su-exec (gosu-compatible) is installed further down | ||||
|
||||
|
@@ -54,7 +50,7 @@ RUN set -ex \ | |||
libxml2-dev \ | ||||
libxslt-dev \ | ||||
linux-headers \ | ||||
llvm8-dev clang g++ \ | ||||
llvm9-dev clang g++ \ | ||||
make \ | ||||
# openldap-dev \ | ||||
openssl-dev \ | ||||
|
Uh oh!
There was an error while loading. Please reload this page.