higlass / higlass-docker

Builds a docker container wrapping higlass-server and higlass-client in nginx
MIT License
32 stars 14 forks source link

personalize the browser page #146

Closed hrhotz closed 6 years ago

hrhotz commented 6 years ago

dear HiGlass Docker container developers

We are experimenting with the HiGlass Docker container in our institute. It is great! Thank you very much.

We currently have 5 servers on five different ports running. Each server has its own set of uploaded files. Our plan is to offer each lab its own HiGlass server, eventually.

Please allow me to ask for a new feature: It would be great to have the possibility to personalize the browser page for each lab. Something small like having an option to add a name in front of HiGlass in the top bar would already be enough. Could something like this be implemented? Thank You.

Regards, Hans-Rudolf

pkerpedjiev commented 6 years ago

Hi Hans-Rudolf,

It's great to hear that you're making good use of the docker container. We weren't planning on implementing that feature but it should be nearly trivial to implement yourself.

The docker container serves the base html page from the higlass-website/index.html file. To serve a personalized page, you just have to replace that file. I imagine that running something like this should do what you want:

docker cp personalized.html higlass-container:higlass-website/index.html
hrhotz commented 6 years ago

Hi Peter

Thank you very much for your pointer. Although, your initial suggestion didn't work (i.e.: I got "Error response from daemon: Could not find the file higlass-website in container higlass-container"). I was successful (after putting the modified index.html file into the tmp directory) with:

sudo docker exec higlass-container cp /tmp/test_index.html higlass-website/index.html

This is exactly, what I have been looking for. Thank you! Hans-Rudolf

pkerpedjiev commented 6 years ago

Excellent. Glad to hear you got it working!