Spotter-VM/lxc-services/postgres/lxcfile

21 lines
509 B
Plaintext
Raw Normal View History

2019-09-18 11:29:58 +02:00
IMAGE postgres_11.3.0-190620
2019-09-18 11:29:58 +02:00
LAYER alpine3.9_3.9.4-190620
2018-09-05 17:41:38 +02:00
2018-09-12 16:08:10 +02:00
RUN EOF
2018-09-05 17:41:38 +02:00
# 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
2019-09-18 11:29:58 +02:00
# Install PostgreSQL
apk --no-cache add postgresql postgresql-contrib
2018-09-05 17:41:38 +02:00
# Create socket directory
mkdir /run/postgresql
chown postgres:postgres /run/postgresql
2018-09-12 16:08:10 +02:00
EOF
2018-09-05 17:41:38 +02:00
2018-09-06 14:27:40 +02:00
USER 5432 5432
2019-09-24 19:15:40 +02:00
CMD postgres -D /var/lib/postgresql
2019-09-18 11:29:58 +02:00
READY pg_isready