From 9e223825aeefc68f023fe05c38b20a5925ace5ce Mon Sep 17 00:00:00 2001 From: sathishvj Date: Wed, 9 Aug 2017 23:46:29 +0530 Subject: [PATCH] docker file with proper shell, pg_isready --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8a607a..e744f49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ -FROM scratch +FROM centos:7 +MAINTAINER sathishvj -# ENTRYPOINT ["/exposecontroller"] -ENTRYPOINT ["/fabric8-dependency-wait-service"] +RUN yum install -y centos-release-scl-rh && \ + yum install -y rh-postgresql95-postgresql && \ + ln -s /opt/rh/rh-postgresql95/root/usr/lib64/libpq.so.rh-postgresql95-5 /usr/lib64/libpq.so.rh-postgresql95-5 && \ + curl -o /usr/bin/fabric8-dependency-wait-service-linux-amd64 -L https://github.com/fabric8-services/fabric8-dependency-wait-service/releases/download/v0.0.7/fabric8-dependency-wait-service-linux-amd64 && \ + chmod +x /usr/bin/fabric8-dependency-wait-service-linux-amd64 -COPY ./out/fabric8-dependency-wait-service-linux-amd64 /fabric8-dependency-wait-service \ No newline at end of file +ENV PATH=${PATH}:/opt/rh/rh-postgresql95/root/usr/bin