Skip to content
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

Merged
merged 6 commits into from
Feb 19, 2018

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Nov 14, 2017

This is an attempt to use 3scale/APIcast#450 in production use case.

TODO:

@mikz
Copy link
Contributor Author

mikz commented Feb 15, 2018

@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
Copy link
Contributor

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.

Copy link
Contributor

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';
Copy link
Contributor

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 ==.

Copy link
Contributor Author

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.

(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
Copy link
Contributor

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

use warnings FATAL => 'all';
use Test::APIcast::Blackbox 'no_plan';

repeat_each(1);
Copy link
Contributor

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?

use warnings FATAL => 'all';
use Test::APIcast::Blackbox 'no_plan';

repeat_each(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

@mikz mikz merged commit de631c1 into master Feb 19, 2018
@mikz mikz deleted the apicast-policy-chain branch February 19, 2018 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants