bgruening / docker-galaxy

:whale::bar_chart::books: Docker Images tracking the stable Galaxy releases.
http://bgruening.github.io/docker-galaxy
MIT License
226 stars 134 forks source link

Unresolved paths to some images, e.g `static/style/blue/ok_small.png` #552

Closed fgp closed 3 days ago

fgp commented 4 years ago

Some images (e.g. on the page Manage Tools, URL admin/repositories) don't load correctly after launching Galaxy using the docker image galaxy-stable:19.09. The problems seems to be that e.g. lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py hardcodes the blue style by referring to %s/style/blue/ok_small.png where %s is the static URL, i.e. static/. But both galaxy.yml and nginx.conf already map static/styleto static/style/blue, and the URL thus translates to /galaxy-central/static/style/blue/blue/ok_small.png which does not exist.

I tried fixing this by changing the static-map line in galaxy.yml to read static-map: /static/style=static/style instead of static-map: /static/style=static/style/blue, but that didn't help -- I assume because the Docker image serves static files directly through nginx, not through uWSGI.

Can I fix this through the config somehow or do I need to modify the Dockerfile to change nginx.conf?

bgruening commented 3 days ago

Thanks to @jyotipm29 we are back on track :smile: The new 24.1 image contains a lot of changes and reflects the latest developments in Galaxy. I would like to close this PR, but please feel free to reopen and rebase against the latest version.

Please give it a try:

docker run -p 8080:80 -p 8021:21 -p 4002:4002 --privileged=true -e "GALAXY_DESTINATIONS_DEFAULT=slurm_cluster_docker"   -v /tmp/galaxy-data/:/export/ quay.io/bgruening/galaxy:24.1

... or any other combination. The readme has been updated. Please add any useful tip to it.

For a list of changes, see the Changelog.