Skip to content

Commit 5f439b6

Browse files
author
Jeff McCormick
committed
fix show-pvc and update dockerfiles
1 parent ebcee5c commit 5f439b6

File tree

7 files changed

+52
-8
lines changed

7 files changed

+52
-8
lines changed

centos7/Dockerfile.csvload.centos7

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ LABEL name="crunchydata/csvload" \
55
PostgresVersion="9.6" \
66
PostgresFullVersion="9.6.5" \
77
version="7.3" \
8-
release="1.5.2" \
9-
build-date="2017-09-28" \
8+
release="2.0" \
9+
build-date="2017-10-28" \
1010
url="https://crunchydata.com" \
1111
summary="loads a CSV file into a database" \
1212
description="executed by the operator, loads a CSV file." \

centos7/Dockerfile.lspvc.centos7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM centos:7
22

3-
LABEL Release="1.5.2" Vendor="Crunchy Data Solutions"
3+
LABEL Release="2.0" Vendor="Crunchy Data Solutions"
44

55
RUN yum -y update && yum -y clean all
66

operator/backup/backup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ func AddBackupBase(clientset *kubernetes.Clientset, client *rest.RESTClient, job
7979
log.Info("created backup PVC =" + pvcName + " in namespace " + namespace)
8080
}
8181

82-
//update the pvc name in the TPR
83-
err = util.Patch(client, "/spec/pvcname", pvcName, "pgbackups", job.Spec.Name, namespace)
82+
//update the pvc name in the CRD
83+
err = util.Patch(client, "/spec/storagespec/name", pvcName, "pgbackups", job.Spec.Name, namespace)
8484

8585
//create the job -
8686
jobFields := jobTemplateFields{

pgo/cmd/pvc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func printPVC(pvcName string) {
6464

6565
// PrintPVCListing ...
6666
func PrintPVCListing(pvcName string) {
67-
var podPath = viper.GetString("Pgo.LspvcTemplate")
67+
var podPath = viper.GetString("Pgo.LSPVCTemplate")
6868
var PodTemplate *template.Template
6969
var err error
7070
var buf []byte

rhel7/Dockerfile.csvload.rhel7

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
FROM registry.access.redhat.com/rhel7.3
2+
3+
LABEL name="crunchydata/csvload" \
4+
vendor="crunchy data" \
5+
PostgresVersion="9.6" \
6+
PostgresFullVersion="9.6.5" \
7+
version="7.3" \
8+
release="2.0" \
9+
build-date="2017-10-28" \
10+
url="https://crunchydata.com" \
11+
summary="loads a CSV file into a database" \
12+
description="executed by the operator, loads a CSV file." \
13+
io.k8s.description="cvsload container" \
14+
io.k8s.display-name="Crunchy cvsload container" \
15+
io.openshift.expose-services="" \
16+
io.openshift.tags="crunchy,database"
17+
18+
# Crunchy Postgres repo
19+
ADD conf/CRUNCHY-GPG-KEY.public /
20+
ADD conf/crunchypg96.repo /etc/yum.repos.d/
21+
RUN rpm --import CRUNCHY-GPG-KEY.public
22+
23+
RUN rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
24+
25+
RUN yum -y update && yum -y install epel-release \
26+
&& yum install -y \
27+
gettext \
28+
hostname \
29+
nss_wrapper \
30+
openssh-clients \
31+
procps-ng \
32+
&& yum -y install postgresql96 \
33+
&& yum clean all -y
34+
35+
RUN mkdir -p /opt/cpm/bin /opt/cpm/conf
36+
ADD bin/csvload/ /opt/cpm/bin
37+
ADD conf/csvload/ /opt/cpm/conf
38+
RUN chown -R 26:26 /opt/cpm
39+
40+
VOLUME /pgdata
41+
42+
USER 26
43+
44+
CMD ["/opt/cpm/bin/start.sh"]

rhel7/Dockerfile.lspvc.rhel7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM registry.access.redhat.com/rhel7.3
22

3-
LABEL Release="1.5.2" Vendor="Crunchy Data Solutions"
3+
LABEL Release="2.0" Vendor="Crunchy Data Solutions"
44

55
RUN yum -y update && yum -y clean all
66

rhel7/Dockerfile.postgres-operator.rhel7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM registry.access.redhat.com/rhel7.3
22

3-
LABEL Release="1.5.2" Vendor="Crunchy Data Solutions"
3+
LABEL Release="2.0" Vendor="Crunchy Data Solutions"
44

55
ENV PGVERSION="9.6" PGDG_REPO="pgdg-centos96-9.6-3.noarch.rpm"
66

0 commit comments

Comments
 (0)