-
Notifications
You must be signed in to change notification settings - Fork 3
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
improvements for docker build #5
Conversation
…d jquery from local file not from CDN
map(ENV['HTTP_PATH']) { run Qless::Server.new(client) } | ||
gui_path = '/qless' | ||
if ENV['HTTP_PATH'] | ||
gui_path = ENV['HTTP_PATH'] |
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.
You can turn this whole block into:
gui_path = ENV.fetch('HTTP_PATH', '/qless')
@multiwave thanks for sending the submission! I like the idea of using So, I'm happy to merge this provided:
|
@@ -0,0 +1,13 @@ | |||
diff --git a/lib/qless/server/views/layout.erb b/lib/qless/server/views/layout.erb |
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 that this change should happen in seomoz/qless, not here. Qless, here, can be bumped once seomoz/qless has updated.
I guess it should be okay now, about the javascript patch - I will keep it here, as I cannot wait for upstream to fix it. But it is easy to remove, do not merge local_js.patch and skip the last lines in Dockerfile. |
Re: the java script patch. Could you please add a reference to the qless issue that is necessitating the JS patch so we know when the patch can be removed and qless updated? |
Sorry for the late response, didn't realize there was feedback. I have now referenced the javascript Issue in comment right above the patch. But when they fixed it upstream the patch will fail, therefore Dockerfile build fails, therefore you know it can be removed ;) |
@multiwave thanks for getting back to us on this. Sorry I'm so late at getting this (I was on vacation). Merging. Thanks, again, for contributing, |
I used your Dockerfile as a base, key changes:
REDIS_URL
instead of 3 env vars, andHTTP_PATH
env var is now optional (default being '/qless') example:docker run -e REDIS_URL="redis://127.0.0.1:6379/0" $IMG_NAME bundle exec rackup qless.ru -o0.0.0.0 -p 5678
I hope some of those changes make into your master.