-
Notifications
You must be signed in to change notification settings - Fork 211
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 best execute arbitrary SQL on first startup? #996
Comments
I would not recommend the method you are using as the standard entrypoint script can basically perform all of these functions and more. I am actually writing a tutorial on now on how to run scripts on database creation, which i hope to finish in the coming week. As soon as the draft is ready on our community forum i will post a link here. |
Great to hear! I will switch to your method as soon as the draft is available. |
@pkleef: Is it possible to share the current state of the draft? I checked the community forum but didn't find it yet. |
Unfortunately I have not been able to contact @pkleef neither here nor by email, is someone in contact with him and can ask him? |
@pkleef -- Can you please provide an ETA for the tutorial you had expected to deliver around November 15? |
@pkleef: Is there an update on this? I still cannot find it on the forums. |
Any news about this feature? |
The latest version of our This feature allows you to either mount a directory with your scripts to the We published a bulk load example on Github to show how this feature works. We also added the following section to our Virtuoso Docker — Reference Guide as well as to the Overview page of our Docker images.
|
Thank you, this guide works perfectly, except for the virtuoso.ini but I made a separate issue for that at #1060. |
I want to execute a
setup.sql
on first startup of a Virtuoso docker container, what would be the best method to do this using the official docker image?In the following, I describe how I do it right now using the tenforce/virtuoso container by using a similar method as they do in their startup script, as they publish the GitHub repository source their image.
However I want to switch to the official image and don't know if that is the intended method or if there is already a hook in place to do just that.
My use case for creating a docker image of Virtuoso for a specific knowledge base is:
When I create a Virtuoso instance once, the graphical user interface of the conductor allows all that very well. However as I recreate the docker container very often, I want to automate that, which also helps someone else who uses that docker image. I know how to do 1-3 using SQL and I am hoping that I can do 4 with SQL as well.
The Dockerfile
wrapper.sh
However since I use that wrapper, my Virtuoso Docker container seems like it takes longer to shutdown or requires a kill command, maybe because it tries to shutdown the wrapper script instead of Virtuoso itself? Should I use this way with the official image or is there a better or standard method to achieve this?
The text was updated successfully, but these errors were encountered: