Spotter-VM/postgres/lxcfile
Disassembler ce325cf3d0
Squashed commit of the following:
- Bump basic OS to Alpine 3.9
 - Restructure repo and add layer versioning
 - Use JSON for all metadata
 - Merge abuild branch (but without abuild)
2019-02-26 20:24:02 +01:00

22 lines
565 B
Plaintext

IMAGE postgres
LAYER shared/alpine3.9
LAYER postgres/postgres
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 + PostGIS
apk --no-cache add postgresql postgresql-contrib postgis@et
# Create socket directory
mkdir /run/postgresql
chown postgres:postgres /run/postgresql
EOF
MOUNT DIR /srv/postgres/data var/lib/postgresql
USER 5432 5432
CMD postgres -D /var/lib/postgresql