Skip to content
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

upload xquery to an image #65

Open
gabylan12 opened this issue Mar 18, 2019 · 9 comments
Open

upload xquery to an image #65

gabylan12 opened this issue Mar 18, 2019 · 9 comments
Labels
question Further information is requested

Comments

@gabylan12
Copy link

I want to upload my xquery to a new image without using volumes.
There is an easy way to do it? the best idea is to autoupload an .xar file.

@duncdrum
Copy link
Contributor

yes installing an expath package via .xar copied to the autodeploy folder is the straightforward means to do this without volumes.
Depending on your needs you might find this repo helpful for an elaborate example.

@duncdrum duncdrum added the question Further information is requested label Mar 18, 2019
@grantmacken
Copy link
Contributor

grantmacken commented Mar 18, 2019 via email

@gabylan12
Copy link
Author

I want the third option

  • do you want to 'build' a new image, incorporating your own xQuery libs or apps?
    with the previous i understood how to do it.

But, if i want to upload a file with the client.sh, the docker hub does not have installed a shell.
How do i do that?

@duncdrum
Copy link
Contributor

duncdrum commented Mar 18, 2019

You can either use these images as a base image for your own images described here. For simple copy operations you can use docker cp … also featured in the readme, you can also use exist's rest service to get your file into the db.
addendum you can also upload the xq file manually and docker commit ...

@gabylan12
Copy link
Author

i need to add a file at fs/db/system/autostart/.
the file is replicated.xq, but in Dockerfile the line does not start the xquery

COPY replicated.xq /exist/webapp/WEB-INF/data/fs/db/system/autostart/

I Cant make a .xar to deploy this file. the docker commit option does not work for me because i need a script to build the image

any ideas?

@dizzzz
Copy link
Member

dizzzz commented Mar 21, 2019

@gabylan12 you should not manually modify "WEB-INF/data/fs" ... exist will not see it. The filesystem should not be touched directly, and with the newest (dev) versions of eXist-db this is not possible anymore.

@dizzzz
Copy link
Member

dizzzz commented Mar 21, 2019

@gabylan12 you need to push (HTTP?) the replicated.xq file into /db/system/autostart/ ; but please note that (1) all permissions of all directories/files need to be according to the rules (see conf.xml) and (2) the autostart trigger needs to be enabled in conf.xml

@gabylan12
Copy link
Author

But, there is any way to do that inside the Dockerfile? the problem with the HTTP push is that i have to do this step manually, i want to do it inside the Dockerfile.

@duncdrum
Copy link
Contributor

What happens if you just adjust the COPY… statement with the path Dannes mentioned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants