-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
37 lines (25 loc) · 968 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM base:ubuntu-quantal
MAINTAINER Ullrich Schäfer <ullrich@seidbereit.de>
# Exposes
EXPOSE 5432
# Credentials
ENV USERNAME docker
ENV PASS d0cker
# update apt sources to use hetzner mirror
#RUN echo "deb http://de.archive.ubuntu.com/ubuntu/ quantal main universe multiverse" > /etc/apt/sources.list
RUN echo "deb ftp://mirror.hetzner.de/ubuntu/packages quantal main restricted universe multiverse" > /etc/apt/sources.list
# Update the package repository
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl psmisc
# Install Dockyard
RUN curl -o /usr/local/bin/dockyard https://raw.github.com/dynport/dockyard/master/dockyard
RUN chmod 0755 /usr/local/bin/dockyard
RUN dockyard install postgresql 9.2.4
RUN useradd postgres
ADD pg_hba.conf /etc/postgresql/9.2/main/
ADD pg_ident.conf /etc/postgresql/9.2/main/
ADD postgresql.conf /etc/postgresql/9.2/main/
# main entry
ADD start /start
RUN chmod 0755 /start
CMD ["/start"]