Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
20e73553
Commit
20e73553
authored
Apr 19, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kong
parent
96641a82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
Dockerfile
baseimg/tools/kong/Dockerfile
+15
-0
docker-entrypoint.sh
baseimg/tools/kong/docker-entrypoint.sh
+15
-0
No files found.
baseimg/tools/kong/Dockerfile
0 → 100644
View file @
20e73553
FROM
192.168.4.4/baseimg/centos:201803291115
ENV
KONG_VERSION 0.12.3
RUN
yum
install
-y
wget https://bintray.com/kong/kong-community-edition-rpm/download_file?file_path
=
centos/7/kong-community-edition-
$KONG_VERSION
.el7.noarch.rpm
&&
\
yum clean all
COPY
docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT
["/docker-entrypoint.sh"]
EXPOSE
8000 8443 8001 8444
STOPSIGNAL
SIGTERM
CMD
["/usr/local/openresty/nginx/sbin/nginx", "-c", "/usr/local/kong/nginx.conf", "-p", "/usr/local/kong/"]
\ No newline at end of file
baseimg/tools/kong/docker-entrypoint.sh
0 → 100755
View file @
20e73553
#!/bin/sh
set
-e
# Disabling nginx daemon mode
export
KONG_NGINX_DAEMON
=
"off"
# Setting default prefix (override any existing variable)
export
KONG_PREFIX
=
"/usr/local/kong"
# Prepare Kong prefix
if
[
"
$1
"
=
"/usr/local/openresty/nginx/sbin/nginx"
]
;
then
kong prepare
-p
"/usr/local/kong"
fi
exec
"
$@
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment