Please find below steps for installing TeamCity on Ubuntu:
Pre-requistes:
Make sure instance has at least 4 GB RAM memory (for EC2 at least medium instance)
Open port 8111 in security firewall.
We need to set up some database for storing all the build information. For this exercise, lets us use default option:
Java installation
sudo apt-get update
sudo apt-get install default-jdk -y
TeamCity installation
wget https://download.jetbrains.com/teamcity/TeamCity-2017.1.2.tar.gz
tar -xvf TeamCity-2017.1.2.tar.gz
sudo mkdir /opt/JetBrains
sudo mv TeamCity /opt/JetBrains/TeamCity
cd /opt/JetBrains/TeamCity
sudo nano /etc/init.d/teamcity
(copy the whole text colored in green)
#!/bin/sh
### BEGIN INIT INFO
# Description: Enable service provided by daemon.
# /etc/init.d/teamcity - startup script for teamcity
### END INIT INFO
# Ensure you enter the right user name that TeamCity will run under
USER="ubuntu"
export TEAMCITY_DATA_PATH="/opt/JetBrains/TeamCity/.BuildServer"
case $1 in
start)
start-stop-daemon --start -c $USER --exec /opt/JetBrains/TeamCity/bin/runAll.sh start
;;
stop)
start-stop-daemon --start -c $USER --exec /opt/JetBrains/TeamCity/bin/runAll.sh stop
;;
esac
exit 0
Ctrl + O enter
Ctrl + X enter
sudo chmod +x /etc/init.d/teamcity
sudo update-rc.d teamcity defaults
sudo /etc/init.d/teamcity start
tail -f /opt/JetBrains/TeamCity/buildAgent/logs/teamcity-agent.log
Open browser and access team city url in the browser
http://public_dns_name:8111
please wait and watch..As It may take a few mins…Click on Proceed.
Click on proceed again with Internal database option.
Scroll down the page, Accept license agreement
Uncheck Send anonymous usage statistics
Continue button
Now click on Add users to create a new admin user.
Register as a user and create an account with Admin privileges:
create admin as a user and admin as a password
Pre-requistes:
Make sure instance has at least 4 GB RAM memory (for EC2 at least medium instance)
Open port 8111 in security firewall.
We need to set up some database for storing all the build information. For this exercise, lets us use default option:
Java installation
sudo apt-get update
sudo apt-get install default-jdk -y
TeamCity installation
wget https://download.jetbrains.com/teamcity/TeamCity-2017.1.2.tar.gz
tar -xvf TeamCity-2017.1.2.tar.gz
sudo mkdir /opt/JetBrains
sudo mv TeamCity /opt/JetBrains/TeamCity
cd /opt/JetBrains/TeamCity
sudo nano /etc/init.d/teamcity
(copy the whole text colored in green)
#!/bin/sh
### BEGIN INIT INFO
# Description: Enable service provided by daemon.
# /etc/init.d/teamcity - startup script for teamcity
### END INIT INFO
# Ensure you enter the right user name that TeamCity will run under
USER="ubuntu"
export TEAMCITY_DATA_PATH="/opt/JetBrains/TeamCity/.BuildServer"
case $1 in
start)
start-stop-daemon --start -c $USER --exec /opt/JetBrains/TeamCity/bin/runAll.sh start
;;
stop)
start-stop-daemon --start -c $USER --exec /opt/JetBrains/TeamCity/bin/runAll.sh stop
;;
esac
exit 0
Ctrl + O enter
Ctrl + X enter
sudo chmod +x /etc/init.d/teamcity
sudo update-rc.d teamcity defaults
sudo /etc/init.d/teamcity start
tail -f /opt/JetBrains/TeamCity/buildAgent/logs/teamcity-agent.log
Open browser and access team city url in the browser
http://public_dns_name:8111
please wait and watch..As It may take a few mins…Click on Proceed.
Click on proceed again with Internal database option.
Scroll down the page, Accept license agreement
Uncheck Send anonymous usage statistics
Continue button
Now click on Add users to create a new admin user.
Register as a user and create an account with Admin privileges:
create admin as a user and admin as a password
No comments:
Post a Comment