-
Notifications
You must be signed in to change notification settings - Fork 18
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
NGINX Unit #992
base: master
Are you sure you want to change the base?
NGINX Unit #992
Conversation
@ambrussimon I would like to use the setup.py/requirements.txt pattern that you have established in reaper, but I don't know how to handle the necessary |
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.
Looks interesting!
Do you have any benchmarks or observed behavior?
requirements.txt
Outdated
uwsgi==2.0.13.1 | ||
webapp2==2.5.2 | ||
WebOb==1.5.1 | ||
git+https://github.com/flywheel-io/[email protected]#egg=gears |
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 use this file for CI, so I would need an equivalent command. I'll want to try things out with this branch if it gets closer to merging.
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.
We will make sure that you don't need any of that anymore. You should able to simply stand up a core and use it. No internal knowledge required.
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.
Sounds good, as long as the container checks itself on boot. Frequently I want to CI against a branch whose container (incl updated libraries) has not built yet.
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.
That's a good point. We'll need to have images available for arbitrary branches of core to facilitate testing of interacting repos, such as reaper and cli. We typically build images for master and all tags. I think that's enough (rather than building for all branches) and keeps clutter at bay. Would that work for you, @kofalt?
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.
Discussed this out of band - basically, as long as any CI container can update itself on boot to the tip of a branch (incl updated libraries) we're fine.
Dockerfile
Outdated
|
||
RUN curl -L https://github.com/nginx/unit/archive/master.tar.gz | tar xz --strip-components 1 | ||
RUN ./configure --prefix=/usr/local --modules=lib --state=/var/local/unit --pid=/var/unit.pid --log=/var/log/unit.log \ | ||
&& ./configure python \ |
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.
We should check the configure options, nginx-web (or whatever) has quite a few good ones.
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.
On it.
setup.py
Outdated
|
||
dependency_links = [ | ||
'git+https://github.com/flywheel-io/[email protected]#egg=gears', | ||
] |
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 take it this entry can't be in the above array?
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.
Not that I could tell, but @ambrussimon will look further into it.
@kofalt No benchmarks yet. Still at the 'getting it running' stage. We'll let you know when this is ready to be tested against. |
@gsfr Isn't the definition of this PR being ready that it's not a "Breaking Change" ? |
@ryansanford Won't be a breaking chance from the user point of view, but will be for parts of our infra. Removing tag. |
0c74af1
to
9ccd114
Compare
7743faf
to
def94cf
Compare
5efc4b0
to
5ebe6d8
Compare
🎉🎉🎉🎉🎉🎉🎉🎉🎉 |
59350a0
to
12fd233
Compare
requirements.txt
Outdated
@@ -1,16 +1,16 @@ | |||
django>=1.11.0,<1.12.0 | |||
elasticsearch==5.3.0 | |||
enum34==1.1.6 | |||
git+https://github.com/flywheel-io/[email protected]#egg=gears | |||
ipython |
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'm guessing you want IPython for debugging, but it's such a quick install and I'd rather not bake it into the image.
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.
Just seeing where IPython came from. I'm taking it out.
requirements.txt
Outdated
jsonschema==2.6.0 | ||
Markdown==2.6.5 | ||
markdown==2.6.5 |
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.
The reason for the capitalization is to match the output of pip freeze
, so that it can be copied verbatim.
e03df1f
to
b2cb26e
Compare
@ambrussimon nginx/unit#65 has been closed. We should now be able to drop your coverage endpoint workaround. However, it appears that Unit's introduction of HTTP Keep-Alive has broken our tests. The previous commit (nginx/unit@497faf1) is the last one that seems to work. |
b2cb26e
to
1303bbd
Compare
@gsfr Just rebased (fixed conflicts), no functional change. |
005b1f9
to
ba51d52
Compare
(needs to be undone before merge)
Ref flywheel-io/sdk#80 for current endpoint status! |
Thanks, @kofalt. @ambrussimon Please take a look at the failing SDK tests. Getting those to pass would be a great milestone for this PR. |
If Ambrus or anyone else has a look at playing with those, note the docs to help you out: In particular, the |
@ambrussimon In trying to get flywheel-io/sdk#80 going, I added |
This is work in progress. Help wanted.
Scope proposal:
Comments and/or requirement definitions welcome.
TO DO
Have Travis push to Docker Hub for this branch