galaxyproject / planemo-machine

A packer.io configuration for building out Galaxy (http://galaxyproject.org/) tool development environments.
10 stars 16 forks source link

planemo/interactive fails to start #87

Open stevecassidy opened 7 years ago

stevecassidy commented 7 years ago

There seems to be an issue with the docker image wrt the startup script. I run the docker command:

docker run -p 8010:80 -p 9009:9009 -vpwd:/opt/galaxy/tools -i -t planemo/interactive

and I get error messages:

umount: /var/lib/docker: must be superuser to unmount
Removing user `ubuntu' ...
Warning: group `ubuntu' has no more members.
Done.
groupadd: GID '0' already exists
useradd: group 'ubuntu' does not exist
passwd: unrecognized option '--stdin'

this is perhaps due to a change in the base image? Adding a group with gid 0 fails and then so does adding the ubuntu user to that group etc.

innovate-invent commented 5 years ago

The docker instance starts and it appears the webserver is up and running but it only serves a blank page with:

Loading failed for the <script> with source “http://127.0.0.9:8010/static/scripts/libs/require.js?v=1546545055”. 127.0.0.9:8010:45:1
Loading failed for the <script> with source “http://127.0.0.9:8010/static/scripts/bundled/libs.bundled.js?v=1546545055”. 127.0.0.9:8010:46:1
Loading failed for the <script> with source “http://127.0.0.9:8010/static/scripts/bundled/analysis.bundled.js?v=1546545055”. 127.0.0.9:8010:47:1
ReferenceError: define is not defined[Learn More] 127.0.0.9:8010:50:13 
innovate-invent commented 5 years ago

It appears that webpacker from the galaxy repo is not being run on image creation. This docker file needs to be included or its functionality needs to be copied over. In the meantime, bashing into the running planemo container and commenting out the following in /etc/nginx/nginx.conf is a workaround:

#location /static/scripts {
#    alias /opt/galaxy/galaxy-app/static/scripts/packed;
#    gzip on;
#    gzip_types text/plain text/javascript application/x-javascript;
#    expires 24h;
#}