Bump python, postgres, postgis to Alpine 3.11

This commit is contained in:
Disassembler 2020-02-07 18:28:24 +01:00
parent 076786f482
commit bba8f06422
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
7 changed files with 58 additions and 30 deletions

View File

@ -0,0 +1,12 @@
IMAGE postgis_3.0.0-200207
FROM postgres_12.1.0-200207
USER root
RUN EOF
# Install PostGIS
apk --no-cache add postgis
EOF
USER postgres
CMD postgres -D /var/lib/postgresql

View File

@ -1,11 +0,0 @@
IMAGE postgis_2.5.1-190620
FROM postgres_11.3.0-190620
RUN EOF
# Install PostGIS
apk --no-cache add postgis@vm
EOF
USER 5432 5432
CMD postgres -D /var/lib/postgresql
READY pg_isready

View File

@ -0,0 +1,15 @@
IMAGE postgres_12.1.0-200207
FROM alpine3.11_3.11.3-200207
RUN EOF
# Install PostgreSQL
apk --no-cache add postgresql postgresql-contrib
# Create socket directory
mkdir /run/postgresql
chown postgres:postgres /run/postgresql
EOF
USER postgres
CMD postgres -D /var/lib/postgresql
READY pg_isready

View File

@ -1,19 +0,0 @@
IMAGE postgres_11.3.0-190620
FROM alpine3.9_3.9.4-190620
RUN EOF
# Modify OS user (which will be picked up later by apk add)
sed -i 's/postgres:x:70:70/postgres:x:5432:5432/' /etc/passwd
sed -i 's/postgres:x:70/postgres:x:5432/' /etc/group
# Install PostgreSQL
apk --no-cache add postgresql postgresql-contrib
# Create socket directory
mkdir /run/postgresql
chown postgres:postgres /run/postgresql
EOF
USER 5432 5432
CMD postgres -D /var/lib/postgresql
READY pg_isready

View File

@ -0,0 +1,8 @@
IMAGE alpine3.11-python2.7_2.7.16-200207
FROM alpine3.11_3.11.3-200207
RUN EOF
apk --no-cache add python2
EOF
CMD python

View File

@ -0,0 +1,9 @@
IMAGE alpine3.11-python3.8_3.8.1-200207
FROM alpine3.11_3.11.3-200207
RUN EOF
apk --no-cache add python3
ln -s /usr/bin/python3 /usr/bin/python
EOF
CMD python

View File

@ -0,0 +1,14 @@
IMAGE alpine3.11_3.11.3-200207
COPY https://github.com/alpinelinux/docker-alpine/raw/v3.11/x86_64/alpine-minirootfs-3.11.3-x86_64.tar.gz
RUN EOF
# Update packages
apk --no-cache upgrade
# Install common packages
apk --no-cache add libbz2 libgcc libressl libstdc++ libxml2 libxslt ncurses-libs pcre readline s6 xz-libs
# Cleanup
rm -rf /etc/crontabs/root /etc/periodic
EOF