-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(update): Add new repository update framework #1458
Conversation
…-swiss/knora-api into wip/1451-repository-update
I've moved the upgrade code to its own subproject. |
…-swiss/knora-api into wip/1451-repository-update
- Make names consistent.
…-swiss/knora-api into wip/1451-repository-update
lol, did the same commit at almost the same time :-) |
Great minds think alike. :) |
And thanks for making the subproject! Before I update the documentation, how do you want to run the |
🤪
Von meinem iPhone gesendet
Am 04.10.2019 um 09:11 schrieb Benjamin Geer <notifications@github.com>:
Great minds think alike. :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1458>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABJX3TFQKRGFGAKZOTEEBWLQM3UAHANCNFSM4I4VA75Q>.
|
You're welcome :-)
Yes, it is going to run in its own Docker image. I would like to run it as the python verson before, i.e., with parameters for GraphDB hostname, repository name and work folder.
Documenting Docker is difficult as it depends on the way how it is orchestrated. The way we run it in Docker is just one way of doing it. It works for us at the moment, but will change over time. I think it is enough to document it on how to run it from SBT. |
I was thinking of giving the sysadmin a bit more control over the process, by having the Scala upgrade program just read an input file and write an output file. In This way, if the TriG file was very large, you could use GraphDB's LoadRDF instead of the upload script. And if Knora rejects your TriG file and you need to fix some things manually in it, you could just do that and upload it again. Also, the same Scala upgrade program would work with TriG files from other triplestores. How does that sound? |
I would prefer a Being able to do the upgrade in manual steps is good for debugging if the So if possible, then please add both options. Manually working with trig files is error-prone (I have this "pleasure" on each deployment). Having to deal with them additionally for upgrades, is not so ideal. |
OK, will do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add the option to optionally provide the path to the directory where stuff is getting downloaded to?
In the old python script there was an option for this: "-t", "--tempdir", help="temporary directory"
Also, it seems that for auto-upgrade.sh
the -u
and -p
options are mandatory, even if they are not needed locally.
Will do. |
I think I need to get you a wizard costume for Halloween. |
lol :-) |
I finally got it working. There is a Travis test covering the sbt upgrade use case. The Docker use case is still missing, but I'm going to add it. |
This is also true with the old upgrade framework. If you don't specify a password, you get a password prompt: parser.add_argument("-u", "--username", help="GraphDB username", type=str, required=True)
parser.add_argument("-p", "--password", help="GraphDB password (if not provided, will prompt for password)",
type=str) I could add an option |
no, it‘s fine. |
# Conflicts: # .gitignore # .travis.yml # KnoraBuild.sbt # project/Dependencies.scala
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this PR is good now. Thanks for making the upgrade faster!
Thanks for the review and the SBT magic! |
This PR replaces the Python-based repository update tool with one written in Scala, to improve performance.
Resolves #1451.