-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
83 lines (66 loc) · 1.72 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM benizar/postgis-ext:9.6-2.3
MAINTAINER Benito Zaragozí <[email protected]>
######################
# Versions and sources
######################
#from https://github.com/benizar/
ENV SOURCE https://github.com/benizar/
ENV ADM https://github.com/benizar/pg_adm.git
ENV GEOHASH https://github.com/benizar/pg_geohash_extra.git
ENV BEDQUILT https://github.com/benizar/bedquilt-core.git
ENV DW https://github.com/benizar/pg_dw.git
################
# Install pg_adm
################
WORKDIR /install-ext
RUN git clone $ADM
WORKDIR /install-ext/pg_adm
RUN make install
#################
# Install geohash
#################
WORKDIR /install-ext
RUN git clone $GEOHASH
WORKDIR /install-ext/pg_geohash_extra
RUN make
RUN make install
#################
# Install postpic
#################
#RUN apt-get install -y libgraphicsmagick-dev
# Need to complete
#################
# Install bedquilt
#################
WORKDIR /install-ext
RUN git clone $BEDQUILT
WORKDIR /install-ext/bedquilt-core
RUN make install
################
# Install pg_dw
################
WORKDIR /install-ext
ADD doc doc/
ADD sql sql/
ADD test test/
ADD makefile makefile
ADD META.json META.json
ADD pg_dw.control pg_dw.control
RUN make
RUN make install
WORKDIR /install-ext
ADD init-db.sh /docker-entrypoint-initdb.d/init-db.sh
WORKDIR /
RUN rm -rf /install-ext
##################
# backup scripts #
##################
ADD /dbutils/backup.sh /usr/local/bin/backup
ADD /dbutils/restore.sh /usr/local/bin/restore
ADD /dbutils/list-backups.sh /usr/local/bin/list-backups
ADD /dbutils/shell.sh /usr/local/bin/shell
# make them executable
RUN chmod +x /usr/local/bin/restore
RUN chmod +x /usr/local/bin/list-backups
RUN chmod +x /usr/local/bin/backup
RUN chmod +x /usr/local/bin/shell