Closed b-fran closed 3 years ago
Hello @b-fran
Indeed, these commands are rarely tested on windows; but in my experience you can make them work.
I will assume that in the same directory as you run the command, there is a subdirectory config
containing ols-config.yaml
.
My guess is that -v $(pwd)/config:/config
fails;
Some potential things to check:
$(pwd)/config
) is not the right syntax for the path (\
)?It worked for me when provided the full path for the config folder. However I have not been able to load a owl file from my local machine (custom ontology). Have you tried that? If it worked for you please let me know
Thanks for the insight. I gave up using bash and just replaced $(pwd) with %cd%. Unfortunately, I have not dealt with local owl files.
I am trying to setup OLS via docker using Windows 10 (version 20H2) and receiving the following error when entering the command.
Command:
docker run --net=host -v $(pwd)/config:/config ebispot/ols-config-importer:stable
Error Message:
2021-03-08 10:52:59,804 INFO main YamlLoader.logStarting - Starting YamlLoader v3.2.1-SNAPSHOT on docker-desktop with PID 1 (/opt/ols-config-importer.jar started by root in /) 2021-03-08 10:52:59,823 DEBUG main YamlLoader.logStarting - Running with Spring Boot v1.3.8.RELEASE, Spring v4.2.8.RELEASE 2021-03-08 10:52:59,823 INFO main YamlLoader.logStartupProfileInfo - No active profile set, falling back to default profiles: default 2021-03-08 10:53:04,797 INFO main YamlLoader$$EnhancerBySpringCGLIB$$2efc129c.run - OBO Ontologies will be imported using config at 'file:///config/obo-config.yaml' 2021-03-08 10:53:04,798 WARN main YamlLoader$$EnhancerBySpringCGLIB$$2efc129c.run - Resource 'URL [file:/config/obo-config.yaml]' could not be found and will therefore not be loaded 2021-03-08 10:53:04,798 INFO main YamlLoader$$EnhancerBySpringCGLIB$$2efc129c.run - Ontologies will be imported using config at 'file:///config/ols-config.yaml' 2021-03-08 10:53:04,799 WARN main YamlLoader$$EnhancerBySpringCGLIB$$2efc129c.run - Resource 'URL [file:/config/ols-config.yaml]' could not be found and will not be loaded 2021-03-08 10:53:04,801 INFO main YamlLoader.logStarted - Started YamlLoader in 6.407 seconds (JVM running for 8.33)
I am using:
GNU bash, version 4.4.23(1)
I have not changed anything inside the repository. I copied the config files from a colleague. These config files work under the same configuration with ubuntu. Has the setup of OLS been confirmed using docker with a windows 10 system?Also, the OLS webpage will load, however the indexing fails.
Any information on this topic would be greatly appreciated. Thank you.