| Línia 3: | Línia 3: | ||
[[Category:tinki]] | [[Category:tinki]] | ||
= tinki-team = | = tinki-team = | ||
[[Fitxer:devel-setup.png]] | |||
To install and run the stack, execute <code>docker-compose up -d</code> from the project folder. In a similar fashion, use <code>docker-compose down</code> to halt the services. To backup the whole stack use the <code>backup-all.sh</code> script. | To install and run the stack, execute <code>docker-compose up -d</code> from the project folder. In a similar fashion, use <code>docker-compose down</code> to halt the services. To backup the whole stack use the <code>backup-all.sh</code> script. | ||
| Línia 16: | Línia 18: | ||
* Jenkins HTTP: http://fedora-atomic.cadt.com:8080 | * Jenkins HTTP: http://fedora-atomic.cadt.com:8080 | ||
* Jira HTTP: http://fedora-atomic.cadt.com:8102 | * Jira HTTP: http://fedora-atomic.cadt.com:8102 | ||
== Gitlab == | == Gitlab == | ||
| Línia 33: | Línia 33: | ||
<pre>bash ./jira/backup.sh</pre> | <pre>bash ./jira/backup.sh</pre> | ||
== References == | == References == | ||
Revisió del 14:48, 21 març 2018
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:
- Gitlab HTTP: http://fedora-atomic.cadt.com:8101
- Gitlab SSH: http://fedora-atomic.cadt.com:22
- Jenkins HTTP: http://fedora-atomic.cadt.com:8080
- Jira HTTP: http://fedora-atomic.cadt.com:8102
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.
bash ./gitlab/backup.sh
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.
bash ./jira/backup.sh
References
- JFrog Artifactory User Guide. Export System Settings Example [online]. Available at https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ExportSystemSettingsExample (Accessed 16 March 2018).
- JFrog Artifactory User Guide. Export System [online]. Available at https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ExportSystem (Accessed 16 March 2018).
- JFrog Artifactory User Guide. Import System Settings Example [online]. Available at https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ImportSystemSettingsExample (Accessed 16 March 2018).
- JFrog Artifactory User Guide. Full System Import [online]. Available at https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-FullSystemImport (Accessed 16 March 2018).
- Backing up and restoring GitLab. Creating a backup of the GitLab system [online]. Available at https://docs.gitlab.com/ce/raketasks/backup_restore.html#creating-a-backup-of-the-gitlab-system (Accessed 16 March 2018).
- Backing up and restoring GitLab. Storing configuration files [online]. Available at https://docs.gitlab.com/ce/raketasks/backup_restore.html#storing-configuration-files (Accessed 16 March 2018).
- Backing up and restoring GitLab. Restore [online]. Available at https://docs.gitlab.com/ce/raketasks/backup_restore.html#restore (Accessed 16 March 2018).
- Jenkins Wiki. Administering Jenkins [online]. Available at https://wiki.jenkins.io/display/JENKINS/Administering+Jenkins (Accessed 16 March 2018).
- Atlassian Documentation. Backing up data [online]. Available at https://confluence.atlassian.com/adminjiraserver/backing-up-data-938847673.html (Accessed 16 March 2018).
Servidors i serveis de desenvolupament:
