Hello all,
I hope this helps someone out there.
I struggled and battled to get Confluence running as an SSL based Docker service. I build mine on Centcon 7.6 OS. It is easily scalable and has built in HA. I can now remove it and put it back and all data is persistent. I have a Jenkins job that backs up the main Confluence data directory nightly.
Here is what I found and did to correct any issues. Many forums helped with small pieces for the SSL part.
Original Base Image:
docker run -v /opt/atlassian/confluence/data:/var/atlassian/application-data/confluence --name="confluence" -d -p 0.0.0.0:8090:8090 -p 0.0.0.0:8091:8091 -e JVM_SUPPORT_RECOMMENDED_ARGS=-Datlassian.recovery.password=admin1 atlassian/confluence-server
DIRS of interest: /opt/atlassian/confluence/data
/var/lib/docker/volumes/confluence_volume
SSL Image:
docker service create --name confluence --publish 8090:8090 --network confluence_network --constraint node.role==worker --mount source=confluence_volume,target=/var/atlassian/application-data/confluence -e ATL_PROXY_NAME=confluence.watchsystems.com -e ATL_PROXY_PORT=443 -e ATL_TOMCAT_SCHEME=https -e JVM_MINIMUM_MEMORY=1024m -e JVM_MAXIMUM_MEMORY=1024m -e JVM_RESERVED_CODE_CACHE_SIZE=512m -e watchsystems/offenderwatch:confluence
Build out, move and Issues to overcome:
First thing is make a fresh DB. Mine was SQL, so I followed the SQL build instructions by Atlassian.
I then backed up my original site and pulled the backup.zip from my Linux VM to a local location.
I created the Docker Swarm Service using the Command above and configured it.
******************************************************************************
RESTORING during install caused me headaches, so I restored after install, and also used an evaluation license to begin, because of other issues with users not syncing after restore
To move Confluence to a docker service or container I had to do the following
Setting Confluence service as HTTPS:
Because Docker uses images and that has all Docker container and service configurations. You have to create a new image from the original to have changes set in new Docker service for Jira products.
I had to do this to get Server.xml to be changed. ( I will add to post):
Issues after moving Confluence:
You may have to run through these steps if Confluence cannot add the User Directory for Jira. With a Docker container or service, once you have to restored Confluence in the directories on the host VM, and the DB tables, you can kill the service or container as many times as you like,as you tweak and change ENV like memory settings, paths. etc...
Solution:
WatchSystems IT Admin
2 comments