_[Under construction]_

'''

The purpose of the present document is to provide the basic steps carried out to improve the configuration of BitBucket server in OpenShift.

The improved configuration consists on:

* Persistent Volume Claims
* Health Checks _(pending to be completed)_

== Persistent Volume Claims.

Please notice that the BitBucket server container does not use persistent volume claims by default, which means that the data (e.g.: BitBucket server config.) will be lost from one deployment to another.

image::./images/others/bitbucket/xtraconfig/pvc0.png[]

*It is very important to create a persistent volume claim in order to prevent the mentioned loss of data.*

=== Step 1: Add storage

image::./images/others/bitbucket/xtraconfig/pvc1.png[]

=== Step 2: Select the appropriate storage, or create it from scratch if necessary

image::./images/others/bitbucket/xtraconfig/pvc2.png[]

=== Step 3: Introduce the required information

* *Path* as it is specified in the link:https://hub.docker.com/r/atlassian/bitbucket-server/[BitBucket server Docker image] (/var/atlassian/application-data/bitbucket)
* *Volume name* with a unique name to clearly identify the volume

image::./images/others/bitbucket/xtraconfig/pvc3.png[]

=== The change will be inmediately applied

image::./images/others/bitbucket/xtraconfig/done.png[]
