tinki-team

To install and run the stack, execute docker-compose up -d from the project folder. In a similar fashion, use docker-compose down to halt the services. To backup the whole stack use the backup-all.sh script.

ssh user@fedora-atomic.cadt.com -p 2222
cd /home/tinki-team
docker-compose up -d
bash ./backup-all.sh

Inside the container server, the stack should be located at /home/tinki-team holding a docker-compose.yml manifest with the following services:

Artifactory

The Artifactory service exposes its web interface on port 8103. A full system backup can be done via the service's API. Backup settings need to be retrieved and sent back via POST, as explained in the official guide. Similarly, to restore the system, retrieve the restoration settings and send them back via POST, as shown in Artifactory's API guide. The current backup script will save the copy inside the container's /tmp/backup folder, and sync it with the host /srv/data/artifactory. Logs can be found on /opt/jfrog/artifactory/logs and are linked to the host's /srv/log/artifactory folder.

<source lang="bash">bash ./artifactory/backup.sh</source>

Gitlab

The Gitlab service exposes its web interface on port 8101, and also port 22 for Git's SSH operations. Backup information can be found in their official guide, mainly done by the service's backup creation Rake task. Configuration files should also be copied along, these include /etc/gitlab/gitlab.rb, /etc/gitlab/gitlab-secrets.json and /var/opt/gitlab/config/secrets.yml, as shown in the same guide. To restore the service follow the commands described in the restoration section. The current backup script will save the copy in the container's /var/opt/gitlab folder, and sync it with the host's /srv/data/gitlab/data. Logs can be found on /var/log/gitlab and are linked to the host's /srv/log/gitlab folder.

<source lang="bash">bash ./gitlab/backup.sh</source>

Jenkins

The Jenkins service exposes its web interface on port 8080. Jenkins is fairly simple to backup and there is no script, simply copy the /var/jenkins_home folder into the desired location. Restoration is done by replacing the target folder with the backup. Jenkins home folder is synced with the host's /srv/data/jenkins location. Logs can be found on /var/jenkins_home/logs and are linked to the host's /srv/log/jenkins folder. General information can be found in the official administration guide.

Jira

The Jira service exposes its web interface on port 8102. According to the information present in their official guide, the current backup script will save the dump inside the host's /srv/data/jira/db folder. Its home folder can be found at the container's /opt/jira and is mapped to the host's /srv/data/jira/data folder. Logs can be found on /opt/jira/log and are linked to the host's /srv/log/jira folder.

<source lang="bash">bash ./jira/backup.sh</source>


References

Pàgines a la categoria «Tinki»

Aquesta categoria només conté la pàgina següent.