Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
docker file with proper shell, pg_isready
Browse files Browse the repository at this point in the history
  • Loading branch information
sathishvj committed Aug 9, 2017
1 parent 1714071 commit 9e22382
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
ENV PATH=${PATH}:/opt/rh/rh-postgresql95/root/usr/bin

0 comments on commit 9e22382

Please sign in to comment.