nmdp-bioinformatics / phycus

Service used for curation of Haplotype Frequency
GNU Lesser General Public License v3.0
7 stars 23 forks source link

How to run PHYCUS locally? #70

Closed fscheel closed 6 years ago

fscheel commented 6 years ago

I've been trying to run the service locally to test #69, but I could not get it to run. The README say to use docker-compose up -d but I get the following error:

$ docker-compose up
Pulling web (curation:latest)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling web (curation:latest)...
ERROR: pull access denied for curation, repository does not exist or may require 'docker login'

I could use docker build --tag curation:latest . to generate the image, but that results in

curation-interface | standard_init_linux.go:190: exec user process caused "no such file or directory"
curation-interface | standard_init_linux.go:190: exec user process caused "no such file or directory"
curation-interface | standard_init_linux.go:190: exec user process caused "no such file or directory"
curation-interface exited with code 1
fscheel commented 6 years ago

After quite some playing around, I found the correct way to run this for development: You have to use the docker-compose.yml from the db folder. That file also contains a comment "Used for local development".

I will send in a PR with the updated readme and additional to get this to work with Docker Toolbox for Windows, which needs additional steps later.