-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to deploy this service locally? #328
Comments
Hi, I'm glad to hear that you are interested in deploying the VLO. There actually are some fairly detailed deployment instructions available. I also recommend having a look at the Docker Compose project that exists for the VLO - this should be the easiest way to get the VLO up and running but keep in mind that there are a lot of configuration options that you may have to review and adapt. Note that complete customisation is not properly supported yet, but you can override a lot of configurations and markup, for instance by adding your own Docker Compose configurations. I hope this helps. If you have any further questions, feel free to leave a comment here! |
@twagoo , I have tried setting this project up in every conceivable way, from building from source, using the development instructions making you run vlo-solr and vlo-web separately to using the compose_vlo project. Also, using the compose_vlo project, I have tried all the versions you guys have published and I could not get this project to run. I honestly think there is a big chunk of documentation missing, environment variables people need to set that isn't mentioned or undocumented procedures to run, because after 4 days of trying to get this to run, I'm honestly done. And finally, the compose should most definitely not be linked to a cli project to be able to run and be dependent on a specific directory structure. People should at minimum be able to just run |
@ibrahimab thanks a lot for the feedback. I agree that documentation for the VLO is lacking in clear instructions for setting it up outside the CLARIN context. Our focus thus far has been deployment inside the CLARIN infrastructure and efforts to make it easily available as a 'turnkey' solution for others are not complete as you and the OP have experienced. I cannot promise that a complete solution or tailored documentation for such a use case will become in the short term. However I could add a dedicated section to the relevant README files that offers sufficient instructions to at least get the VLO up and running. The following set of commands should do the trick. Would you be able to test this out and confirm this?
Next steps would be get metadata records in the metadata volume, and a matching data roots configuration file in place. This is actually documented at https://gitlab.com/CLARIN-ERIC/compose_vlo/#run-the-importer-to-ingest-cmdi-metadata-into-the-vlo. Let me know if this works for you - if so, I will add this to the documentation. If not, we have works on my machine and I need to figure out what false assumptions are made.
This is a CLARIN-internal convention for the purpose of deployment management. I understand that at the level of an individual project this is a lot of overhead, and I agree that its usage should be optional. Nearly all functions can be performed through compose commands or bundled scripts however. As explained above, this has not been a documentation priority. |
I have tried your example in the previous comment, and like the compose_vlo, the standalone vlo and via the control-script way, I keep getting the same problem. Your method produces this error continuously when following the logs, which btw is the same thing that happens with every other method I mentioned above. My guess is, either I'm missing env variables that the build/run scripts depends on or the platform I'm running on is missing something. Because, running vlo-solr on its own (docker-solr or the official solr image) works, but when running this project, this happens.
And ends with |
@twagoo
If I can be of any help with setting up an easy to use docker (compose) setup for people to try out, please do not hesitate to contact me. That includes writing easier documentation, because right now it's a mess. All the links referring to the master branch, even though there are major differences between 1.x and 2.x on the control script. I would also be open to (help) creating like a global cli project, like angular cli and react have, that include an one-line execution to setup a running project. |
Glad to see a big progress! However, I still cannot get it running.
|
I suspect that you don't have all of your environment variables configured properly. Is there a file
For the record, I think these should have defaults in the docker-compose file so that setting them is optional or else not setting them should explicitly lead to an error. This is something that I hope to be able to do for an upcoming version. |
@twagoo I strictly run all these commands. And also uncomment your post variables in the .env file, and run agains, it shows:
|
Oops, you've found a bug in the .env template there. Assuming you are using the current master branch of
|
@twagoo When I comment out the line that defines VLO_MONITORING_DATA_VOLUME, it shows error
|
Hi @fishfree are you on the latest revision of master (1c7af063fee5c6492415e978a6d97b9763d3d6e7) and have no other enabled line that defines Otherwise I suggest setting
at the very end of |
I'd like to deploy this great VLO for my university. But no detailed documentation. Could anyone share a tutorial please? Many thanks!
The text was updated successfully, but these errors were encountered: