CodeStandard/devops/arch/SETUP SERVER.txt
2024-06-07 20:00:25 +03:00

54 lines
2.3 KiB
Plaintext

# NOTE: Server IP = 172.22.1.2 // ssh admuser@192.168.1.249
# VPN CONNECTION REQUIRED
======== System ===========
Install Ubuntu
sudo apt full-upgrade
sudo apt-get upgrade
sudo apt-get update
sudo timedatectl set-timezone Europe/Moscow
Setup en_US locale
https://www.thomas-krenn.com/en/wiki/Configure_Locales_in_Ubuntu
sudo apt install zip unzip
======== GIT ==============
Add git user and setup git repos server
https://git-scm.com/book/ru/v1/Git-%D0%BD%D0%B0-%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B5-%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%B0%D0%B8%D0%B2%D0%B0%D0%B5%D0%BC-%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80
Import git repositories
https://gist.github.com/niksumeiko/8972566
Update submodule links between repos
http://pa1gitsolutions.blogspot.com/2015/07/changing-git-submodules-urlbranch-to.html
======== Jenkins ===========
1. Install Java, Jenkins, Apache server, UFW Firewall
https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-ubuntu-20-04-ru
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt install jenkins
sudo ufw allow 8080
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
2. Use Internet browser to connect to http://172.22.1.2:8080/
3. Jenkins Plugins: Folders OWASP Markup Formatter Build Timeout Credentials Binding Timestamper Workspace Cleanup Pipeline Pipeline: Stage View Git SSH Build Agents Email Extension Mailer Dashboard View MSBuild Cobertura Warnings Next Generation Multijob Copy Artifact SSH Agent Active Directory Publish Over SSH Locale
4. Setup network DNS to alias jenkins URL
5. Configure Jenkins Master and Slave
https://www.howtoforge.com/tutorial/ubuntu-jenkins-master-slave
6. Jenkins: Subverion Version Number
To control this behavior with Jenkins go to Manage Jenkins -> Configure System -> Subversion and configure the Subversion Workspace Version to 1.6 from the combo box (by default it is set to oldest version - 1.4).
https://stackoverflow.com/questions/11872313/svn-is-not-under-version-control-failure-with-jenkins
7. Configure and connect Jenkins agents
Use JNLP to connect Windows slave. Might require network adjustm
https://scmquest.com/jenkins-windows-slave-configuration-with-screenshots/