Giter Club home page Giter Club logo

teamcity-installation's Introduction

teamcity-installation

Step 1: Update the server

  sudo yum update -y

Step 2: Install java 8

  sudo yum install java-1.8.0-openjdk-devel -y

Setup PostgreSQL 10 Database For SonarQube

amazon-linux-extras install postgresql10 vim epel -y
yum install -y postgresql-server postgresql-devel
/usr/bin/postgresql-setup --initdb

Need to change config file as shown in below

vi /var/lib/pgsql/data/pg_hba.conf

Replace Method name "peer" to "md5"

image

Enable postgresql:

systemctl enable postgresql

Start postgresql:

systemctl start postgresql

Login into Database

su - postgres

You can get into Postgres console by typing

psql

Create a teamcitydb database

create database teamcitydb;

Create the teamcity user with a strongly encrypted password

create user teamcity with encrypted password 'Cloud#436';

Next, grant all privileges to teamcity user on teamcitydb

grant all privileges on database teamcitydb to teamcity;

Exit the psql prompt using the following command

\q

Switch to your sudo user using the exit command

exit

Download TeamCity Firstly we will download the TeamCity tar archive from the official website.

wget https://download.jetbrains.com/teamcity/TeamCity-2020.1.3.tar.gz

tar xvf TeamCity-2020.1.3.tar.gz

Install TeamCity Now we will install TeamCity.

mkdir /opt/teamcity mv TeamCity /opt/teamcity

Download PostgreSQL JDBC driver We need to download PostgreSQL JDBC driver in order to use PostgreSQL database for TeamCity. You can download it from this link also or use the following command to download via yum.

mkdir -p /opt/teamcity/.BuildServer/lib/jdbc/ https://repo1.maven.org/maven2/org/postgresql/postgresql/42.2.16/postgresql-42.2.16.jar

wget https://jdbc.postgresql.org/download/postgresql-42.2.16.jar -P /opt/teamcity/.BuildServer/lib/jdbc/

We will create a startup script to start teamcity. Create a new file in /etc/systemd/system/teamcity.service.

vim /etc/systemd/system/teamcity.service

[Unit] Description=TeamCity Server After=network.target

[Service] Type=forking PIDFile=/opt/teamcity/logs/teamcity-server.pid ; Make sure the CATALINA_PID env variable is setup in $TEAMCITY_HOME/bin/catalina.sh ExecStart=/opt/teamcity/bin/teamcity-server.sh start ExecStop=/opt/teamcity/bin/teamcity-server.sh stop

[Install] WantedBy=multi-user.target Enable and Start TeamCity Services Now we will enable and start TeamCity using systemctl. Before we need to reload the daemon because we have created new service file.

systemctl enable teamcity

systemctl start teamcity

TeamCity web interface Now we will go to the web interface to continue our TeamCity installation. Go to ip-address:8111

Step 1: Change the Data Directory

Here we will change the data directory to /opt/teamcity/.BuildServer

teamcity-installation's People

Contributors

naresh240 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.