-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert cloud hosted custom module into a policy #1
Conversation
412b091
to
000a6f0
Compare
e5a60d9
to
ec2d2e4
Compare
ec2d2e4
to
bcdf4bb
Compare
@3scale/operations we need to figure out how to use stock apicast image and add this customization with s2i to build new image on OpenShift. |
apicast/Makefile
Outdated
@@ -1,6 +1,6 @@ | |||
.DEFAULT_GOAL := help | |||
|
|||
APICAST_VERSION ?= v3.0.0 | |||
APICAST_VERSION ?= policy-chain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this version in quay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah forget about it, I see that you changed this in another commit.
@@ -0,0 +1 @@ | |||
requires 'Test::APIcast', '0.04'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.04
is an old version. Although the latest will be installed anyway unless we pin the version with ==
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. I think that is fine. This library is already installed in the apicast image so this just ensures it has the right version.
.circleci/config.yml
Outdated
(cd apicast && make push REMOTE_IMAGE_NAME=apicast-cloud-hosted:apicast-${CIRCLE_TAG:-${CIRCLE_BRANCH}}) | ||
(cd mapping-service && make push IMAGE_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}) | ||
fi | ||
|
||
apicast-test: | ||
docker: | ||
- image: quay.io/3scale/s2i-openresty-centos7:1.13.6.1-rover5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest is s2i-openresty-centos7:1.13.6.1-rover6
apicast/t/blacklist.t
Outdated
use warnings FATAL => 'all'; | ||
use Test::APIcast::Blackbox 'no_plan'; | ||
|
||
repeat_each(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one can be run twice. Delete this line so Test::APIcast applies its default?
apicast/t/module.t
Outdated
use warnings FATAL => 'all'; | ||
use Test::APIcast::Blackbox 'no_plan'; | ||
|
||
repeat_each(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
9e8d170
to
5925384
Compare
This is an attempt to use 3scale/APIcast#450 in production use case.
TODO:
/usr/bin/container-entrypoint: line 16: /usr/libexec/s2i/run: No such file or directory
when running built image without a command (fix running runtime image without a command s2i-openresty#42)