Post

4 followers Follow
0
Avatar

Question: Automatic installation with file based repository in another location (for Docker)?

Hi,

I'm trying to build a Docker container for testing XL Release, and as such I want to perform a automatic (unattended) installation. I saw another forum question about this (for XL Deploy) and I have tried to implement this myself.

I first did a ./server.sh -setup to get a default config file which I copied to another location (xlrelease-default.properties, see attached file)

One specific choice I made was that I want my file-based repository in a different location (which I will make persistent on another disk since docker containers are not persistent).

Next step is to start the server with these defaults:

./bin/server.sh -setup -reinitialize -force -setup-defaults ../xlrelease-defaults.properties

This works, the installation is unattended, however it fails right at the start with the message:

Cannot delete JCR repository at /repository

/repository is the location at which I want my file based repository to be placed. This directory exists and is empty.

With regards,

Rick Peters

Rick Peters Answered

Please sign in to leave a comment.

7 comments

0
Avatar

Hi guys, I already figured this one out, the repository can't be at the mount point itself, because xlrelease tries to delete it. So it has to be a subdirectory. I changed it to /repository/xlrel-repo and now it works like a charm. If anybody is interested in the Docker container for XL Release, just contact me. It works great. Regards, Rick

Rick Peters 0 votes
0
Avatar

If anybody is interested in the Docker container for XL Release

We certainly are - that sounds cool! Do you have a link you can share, Rick?

Regards

Andrew

XebiaLabs Support 0 votes
0
Avatar

Hi Andrew,

Just a quick response on the docker files.

It's still rough, I want to enhance it by putting more directory's in the external volume and not just the repository. Goal is to have your own plugins and externals on a separate volume from the runtime. In that way it should be more easy to install a new version of XL Deploy.

Have fun and keep me posted

Regards,

Rick

Rick Peters 0 votes
0
Avatar

Rick,

That's really cool, I did the same exercise some weeks ago for XL Deploy, also a rough version :-).

In a nutshell here are the differences with your approach

I don't symlink the license file, I just volume mount the license file in the container. The other difference is that I use debian, install the jre headless and also repackaged the zip distribution to a tar.gz to allow docker to unpack xldeploy in one layer, all to reduce the image size to around 350MB.

Have fun using Docker!

Regards,

Fai

Fai Fung 0 votes
0
Avatar

I did the same exercise some weeks ago for XL Deploy, also a rough version

Cool, thanks for sharing, Fai! Are your images or containers also available in a registry/repository somewhere?

Regards

Andrew

Andrew Phillips 0 votes
0
Avatar

> Really love this feature of zendesk, that you cannot edit your own comments ;-)

I know...lovely, eh? But the good thing is that we can fix this for you ;-)

Regards

Andrew

Andrew Phillips 0 votes