Bump python, postgres, postgis to Alpine 3.11
This commit is contained in:
parent
076786f482
commit
bba8f06422
12
lxc-services/postgis/image
Normal file
12
lxc-services/postgis/image
Normal 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
|
@ -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
|
|
15
lxc-services/postgres/image
Normal file
15
lxc-services/postgres/image
Normal 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
|
@ -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
|
|
8
lxc-shared/alpine3.11-python2.7/image
Normal file
8
lxc-shared/alpine3.11-python2.7/image
Normal 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
|
9
lxc-shared/alpine3.11-python3.8/image
Normal file
9
lxc-shared/alpine3.11-python3.8/image
Normal 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
|
14
lxc-shared/alpine3.11/image
Normal file
14
lxc-shared/alpine3.11/image
Normal 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
|
Loading…
Reference in New Issue
Block a user