-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* misc(ci) setup travis-ci * misc(ci) setup travis-ci * misc(ci) setup travis-ci * feat(rhel) add rhel tests to travis-ci * fix(rhel) add hostname dependency to test image
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
dist: xenial | ||
sudo: false | ||
language: minimal | ||
|
||
env: | ||
- RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=trusty | ||
- RESTY_IMAGE_BASE=ubuntu RESTY_IMAGE_TAG=xenial | ||
- RESTY_IMAGE_BASE=centos RESTY_IMAGE_TAG=6 | ||
- RESTY_IMAGE_BASE=centos RESTY_IMAGE_TAG=7 | ||
- RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=6 | ||
- RESTY_IMAGE_BASE=rhel RESTY_IMAGE_TAG=7 | ||
- RESTY_IMAGE_BASE=alpine RESTY_IMAGE_TAG=latest | ||
|
||
before_install: | ||
- sudo make setup_tests | ||
- sudo iptables -P FORWARD ACCEPT | ||
- git clone [email protected]:Kong/kong.git ../kong | ||
|
||
install: | ||
- make package-kong | ||
|
||
script: | ||
- make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM registry.access.redhat.com/rhel7/rhel | ||
|
||
ARG KONG_VERSION="0.0.0" | ||
ARG KONG_PACKAGE_NAME="kong-community-edition" | ||
ARG RESTY_IMAGE_TAG="7" | ||
ARG REDHAT_USERNAME | ||
ARG REDHAT_PASSWORD | ||
|
||
RUN subscription-manager register --username ${REDHAT_USERNAME} --password ${REDHAT_PASSWORD} --auto-attach && \ | ||
yum-config-manager --enable 'rhel-*-server-optional-rpms' | ||
|
||
RUN yum -y install perl openssl hostname | ||
|
||
COPY output/${KONG_PACKAGE_NAME}-${KONG_VERSION}.rhel${RESTY_IMAGE_TAG}.noarch.rpm /kong.rpm | ||
|
||
RUN rpm -i kong.rpm | ||
|
||
COPY test/docker-entrypoint.sh /docker-entrypoint.sh | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
EXPOSE 8000 8443 8001 8444 | ||
|
||
STOPSIGNAL SIGTERM | ||
|
||
CMD ["kong", "docker-start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters