Mounting a plugin to a confluence docker container

I am trying to build an automated deployment of my plugin to a staging environment.
Therefore I want to run the confluence docker image on a server, however I’d like to mount my plugin’s jar into the container, so that I don’t have to install it manually via the UI every single time, but instead let my CI/CD pipeline do that for me.

Is there any way of achieving this?

One option is to install the QuickReload plugin manually into Confluence, create a file within the container that points to an arbitrary path, and then bind mount that path to somewhere on the Docker host. From that point, you can (re)install your plugin by simply copying it into the directory on the host.

1 Like