/
Dockerfile.pgo-load.rhel7
48 lines (36 loc) · 1.17 KB
/
Dockerfile.pgo-load.rhel7
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
FROM registry.access.redhat.com/rhel7
MAINTAINER jeff.mccormick@crunchydata.com
LABEL name="crunchydata/pgo-load-" \
vendor="crunchydata.com" \
PostgresVersion="10" \
PostgresFullVersion="10.5" \
Version="7.5" \
Release="3.2.0" \
run='docker run -d -p 8080:80 --name=web-app web-app' \
summary="Crunchy Data PostgreSQL Operator - Load Data" \
description="Loads a CSV or JSON file into the database."
ENV PGVERSION="10"
COPY redhat/atomic/pgo_load/help.1 /help.1
COPY redhat/atomic/pgo_load/help.md /help.md
COPY redhat/licenses /licenses
# Crunchy PostgreSQL repository
ADD conf/CRUNCHY-GPG-KEY.public /
ADD conf/crunchypg10.repo /etc/yum.repos.d/
RUN rpm --import CRUNCHY-GPG-KEY.public
RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum -y update && yum -y install epel-release \
&& yum install -y \
gettext \
hostname \
nss_wrapper \
openssh-clients \
procps-ng \
&& yum -y install postgresql${PGVERSION} \
&& yum clean all -y
RUN mkdir -p /opt/cpm/bin /opt/cpm/conf
ADD bin/pgo-load/ /opt/cpm/bin
ADD conf/pgo-load/ /opt/cpm/conf
RUN chown -R 26:26 /opt/cpm
VOLUME /pgdata
USER 26
CMD ["/opt/cpm/bin/start.sh"]