TBD Holger's TODOs #18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We talked about these, but time is running out on Friday afternoon. So, for now, copied here as is and to be discussed more.
To do this you need to install the local version of the plugin into amarillo's venv, simply using
pip install /path/ to/plugin. You can try the-eflag to make an editable install, then you don't have to keep running it again and again, but I have not had success with that (I remember it was a VS code specific problem).We already have
in all the docker deployments. We could add the group too, not sure how important that is.
The one problem i know of is that if the /data directory does not exist and you run the compose file, it will create the /data folder when it mounts it. Therefore it will have the permissions you launched
docker compose upwith, so if you used sudo it can cause the /data folder to be owned by root. This will not be a potential problem anymore once we have the sample data creation script: either the data folder will already be there from a previous version or we will set it up correctly in the script.I am unable to reproduce this using a fresh python3.11 venv. Make sure when you run
uvicorn amarillo.main:appit uses the venv rather than the global python executable. You might need to run it aspython3.11 -m uvicorn amarillo.main:appor even specify the path to the python executableRunning an OPTIONS request in curl gives
405 Method Not Allowed, and the same message appears in the logs. Interestingly, it does respond with anallowheader stillI have not found an option that produces an OPTIONS request in the web UI.
Searching for
fastapi options requestmostly yields results talking about CORS, I'm not sure if that applies. Best I could find is https://github.com/fastapi/fastapi/issues/2008, that might be what you are looking for, but it was left hanging it seems.Put in README
GTFS endpoints are in the right place now

i added --host=localhost and it runs from VS Code


but in docker it is not happy
I've pushed it to the plugins branch now
For the OPTIONS requests i am getting 405 - Method Not Allowed, and the same in the logs. What is the confusing log message?
I have not found this error in the logs for dev or mitanand. However, logging.conf was outdated, I've updated it to create the log file, that should fix this.
Related:
amarillo-metrics is in the requirements.txt file, I believe it is a mistake because the base image should not contain plugins. Should I remove it or am I wrong about that?
RIDE2GO_TOKEN is not required. The rest i have added to amarillo-compose readme, main amarillo only needs the admin token.
The way we have it now is amarillo-base gets built, then amarillo-standard adds plugins for metrics and gtfs. They are separate dockerfiles, one based on the other. Is this just about renaming amarillo-standard to amarillo-gtfs, or something else entirely?