-
Notifications
You must be signed in to change notification settings - Fork 67
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
Expose browser-apikey via environment variable #9
Conversation
Add `--browser-apikey` to `supervisord.conf`, reading its value from the `OTR_BROWSERAPIKEY` environment variable.
Sounds sensible (and I don't think it's a Recorder issue). |
I've kicked a new build on Dockerhub, and would appreciate if you could test it: the build is now ready. |
TL;DR the image now works only if a Broweser Api Key is provided. The image pushed on the hub works only if an I did some tests and without a key i.e. with a simple
Running the container without providing a key was possible pior to this and an empty Another way to get the image work as before could be installing a more recent supervisord (via pip, that isn't included in the current Image) since the distro provided package is too old and has this bug |
Oh rats! |
@suhlig no need to update supervisord, the behaviour you have experienced was due to the ot-recorder debian package version |
Thank you @juzam for taking care of this and apologies that I hadn't released the updated package earlier. |
@jpmens there's no need to apologize. this has been a crash course in git/github/docker debugging. I'm always happy to be helpful. |
* rollback upstream PR #9 * testing ot-recorder.defaults in volume Signed-off-by: Giovanni Angoli <juzam76@gmail.com> * moved topics configuration from supervisord.conf to ot-recorder.default so it can be overridden
The recorder README states that
OTR_BROWSERAPIKEY
can be set to override the Google maps browser API key. Passing it to the Docker container does not seem to work with the current version of supervisord. The following snippet should have worked, but it does not:It can be checked pretty quickly after starting the container with
curl http://my-docker-host:8083/static/apikey.js
, which is still having an empty api key. There is some more evidence on supervisord's env issues in this SO thread.This PR works around the issue by adding
--browser-apikey
to the invocation ofot-recorder
insupervisord.conf
, reading the value from theOTR_BROWSERAPIKEY
environment variable. This, btw, which proves that passing the environment value fromdocker -e
to supervisord works in general.A change to
run.sh
shows how to set this environment variable.It is possible that this is a bug in owntracks/recorder, but I was unable to reproduce it there.