14. Table of Content How To
Creating Amazon AWS instance
Installing TeamCity
Basic TeamCity Configuration
Creating Agents
Scaling Agents
Conclusions
15. Creating Amazon AWS instance
Amazon offers 750h of free t2.micro instace so you can prototype yourself! I encourage you!
Once you setup your key pair for login and Security groups you are ready to setup the
instance with Team City.
Pre requisites:
Unzip, java jdk7
16. Installing TeamCity
$ sudo apt-get install openjdk-7-jdk
Login to the newly create AWS instance
Download TC from https://www.jetbrains.com/teamcity/download/
$ tar xvzf TeamCity-9.1.3.tar.gz
$ ./TeamCity/bin/runAll.sh start
Go to the <serverip/domain>:8111 and configure your administrator account
Job done
18. Creating Agents
Once you setup your key pair for login and Security groups you are ready to setup the
instance with Team City.
Pre requisites:
Unzip, java jdk7
Download the zip file to the agent. Unzip it
$ unzip buildAgent.zip
$ chmod +x ./bin/agent.sh start
19. Creating Agents
Configure the build.properties for the agent
$ cp ./conf/buildAgent.dist.properties ./conf/buildAgent.properties
$ vim ./conf/buildAgent.properties
Setup the serverURL with your TC Web App address
Add agent to boot
$ vim /etc/rc.local
Add a line:
<path to where you unpacked zip>/bin/agent.sh start
30. Spot Instances
Amazon EC2 Spot Instances
Amazon EC2 Spot instances are spare EC2 instances that you can bid on to run
your cloud computing applications. Since Spot instances are often available at a
lower price, you can significantly reduce the cost of running your applications, grow
your application’s compute capacity and throughput for the same budget, and
enable new types of cloud computing applications.
Benefits
Get the Best Value for Amazon EC2 Capacity
Spot instances run when your bid price exceeds the Spot price, and provide the reliability,
security, performance, control, and elasticity of Amazon EC2, at low market-driven prices.
Reduce Operating Costs
Reduce your operating costs by up to 50-90% with Spot, compared to On-Demand
instances. To see the current prices, visit the Spot Pricing page.
Improve Application Throughput
You can run and scale applications such as stateless web services, image rendering, big data
analytics and massively parallel computations on Spot instances. Since Spot instances
typically costs 50-90% less, you can increase your compute capacity by 2-10x within the
same budget.