Skip to content

Commit

Permalink
Update to Kong 0.9.9, replace dockerize with wait-for-it.
Browse files Browse the repository at this point in the history
  • Loading branch information
DonMartin76 committed Feb 8, 2017
1 parent ebfd21e commit 0942590
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM kong:0.9.7
FROM kong:0.9.9

ENV DOCKERIZE_VERSION v0.2.0
ENV KONG_PG_HOST kong-database
ENV KONG_PG_USER kong
ENV KONG_PG_PASSWORD kong
Expand All @@ -10,8 +9,8 @@ RUN yum install -y epel-release && yum install -y wget \\
&& yum clean all \\
&& wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 \\
&& chmod +x /usr/local/bin/dumb-init \\
&& wget -nv https://github.com/jwilder/dockerize/releases/download/\$DOCKERIZE_VERSION/dockerize-linux-amd64-\$DOCKERIZE_VERSION.tar.gz \\
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-\$DOCKERIZE_VERSION.tar.gz
&& wget -O /usr/local/bin/wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for-it/55c54a5abdfb32637b563b28cc088314b162195e/wait-for-it.sh \\
&& chmod +x /usr/local/bin/wait-for-it.sh

COPY templates/nginx_kong.lua /root/nginx_kong.lua
COPY startup.sh /startup.sh
Expand Down
2 changes: 1 addition & 1 deletion startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ fi

echo Using kong database host: $KONG_PG_HOST

dockerize -wait tcp://kong-database:5432 kong start
wait-for-it.sh -h $KONG_PG_HOST -p 5432 -t 30 -- kong start

0 comments on commit 0942590

Please sign in to comment.