-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (37 loc) · 1.13 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
FROM benizar/postgres-ext:9.6
# Basic build-time metadata as defined at http://label-schema.org
LABEL org.label-schema.name="pg_adm" \
org.label-schema.description="Docker container for developing and testing the pg_adm extension." \
org.label-schema.version="9.6" \
org.label-schema.vcs-url="https://github.com/benizar/pg_adm" \
org.label-schema.vendor="benito-zaragozi.com" \
org.label-schema.schema-version="1.0"
########################
# Versions and sources #
########################
#from https://github.com/benizar/
#ENV SOURCE https://github.com/benizar/
ENV SAKILA https://github.com/benizar/pg_sakila_db.git
########################
# Install pg_sakila_db #
########################
WORKDIR /install-ext
RUN git clone $SAKILA
WORKDIR /install-ext/pg_sakila_db
RUN make
RUN make install
##################
# Install pg_adm #
##################
WORKDIR /install-ext
ADD doc doc/
ADD sql sql/
ADD test test/
ADD makefile makefile
ADD META.json META.json
ADD pg_adm.control pg_adm.control
RUN make
RUN make install
WORKDIR /
RUN rm -rf /install-ext
ADD init-db.sh /docker-entrypoint-initdb.d/init-db.sh