-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
[feature] apt-update for exist-db #4553
Comments
@eduarddrenth where or how would this be called? |
Well, you could call it from your Dockerfile (bit complex example, sorry):
|
@eduarddrenth are there existing commands in |
I was able to remove the dependency from package-service completely in the updated gist. |
sounds good... and the hard coded package-repo? |
OK, the file commandos holds arbitrary xquery, isn't part of exist but can
be supplied by any exist developer to be executed as part of a docker build
process. In this file I would like to call update-all
Op do 8 sep. 2022 17:02 schreef Juri Leino ***@***.***>:
… @eduarddrenth <https://github.com/eduarddrenth> are there existing
commands in /exist/commands or would this be the first one?
—
Reply to this email directly, view it on GitHub
<#4553 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACN2KKF7ETK57WKAUBZH7BTV5H5ZJANCNFSM6AAAAAAQHTGOXY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Well, I will make it external but that likely won't help you much. |
You refer to the hard coded url I suppose? I don't know, can be in a global property/config? Otherwise perhaps a parameter (not a request parameter I would say) to the function... |
@eduarddrenth is the commands file documented somewhere? When is this called? At which point in the lifetime of the container? At startup? Before autodeploy is read? Why is it not commands.xq - is that an API endpoint? Assuming there is an XQuery main module "commands" that is evaluated each time the docker container starts.
Looking at the above you will likely be better off just using the functions that packageService already exposes. |
see also eXist-db/xst#33 |
This is not part of exist-db at all, it is my own use-case. The docker RUN command is executed build time, not every time the container starts, it is the very last command executed at build time, so after autodeploy etc. I do not understand your last remark "better off...", packageService does not contain an update-all function I would like to call. Feels like we do not understand eachother, perhaps we should call.... |
OK, if you are sure that packageservice is installed, then
|
good to know, but will not work within a (distroless) docker build of exist |
Isn't that what your update-all gist does? Or do you suggest a different approach here? |
With xst installed on the host machine you can "remote-control" an eXistdb instance running in docker. |
Not anymore as the gist does no longer depend on package service being installed. |
Nice! |
Thanks, in due time I'll see how to integrate in my build/deploy pipelines |
One more question, is the idea now to let "package update fucntionality" be a part of xst and not to add an update-all function to the package-service? This would somewhat force users to implement update functionality on docker hosts, which may be undesirable. |
@eduarddrenth I am not against adding a |
When you build the Docker image of eXist-db it is always the case that the latest versions of both:
|
This feature is not implemented in exist-db (at runtime) yet. |
@line-o But I think the issue was about build time and not runtime. @eduarddrenth said this in the original enquiry:
|
Yes, I know, but I build my own docker apps based on an exist-db build from docker-hub (FROM exist-db...). In that situation updates aren't downloaded and that cannot be done in an easy way (exist-apt upgrade). |
@eduarddrenth If you use Maven to build your images from the official eXist-db images, it is fairly trivial to have it download the latest Xar files for you. |
The feature, to update all currently installed packages to their newest version within an instance of exist - at runtime, is useful for a large number of users. This is regardless, if @eduarddrenth's use-case can be achieved at build time or not. This is why I would like to keep this issue open. |
Good to hear, I'll look into that, perhaps it's an option for me
Op zo 17 sep. 2023 13:49 schreef Adam Retter ***@***.***>:
… @eduarddrenth <https://github.com/eduarddrenth> If you use Maven to build
your images from the official eXist-db images, it is fairly trivial to have
it download the latest Xar files for you.
—
Reply to this email directly, view it on GitHub
<#4553 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACN2KKENYHGOTNKGSIPQKLTX23PUNANCNFSM6AAAAAAQHTGOXY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
For example when building an exist-db docker image it would be good if packages could be updated to the latest version.
See: https://exist-db.slack.com/archives/CG2MRUZ35/p1662555892413129
See: https://gist.github.com/line-o/8bab558790a532939432da5cd3ad8ef7
The gist can be a starting point, it should be reviewed and tested of course.
The text was updated successfully, but these errors were encountered: