Let’s go back to opened page “Database connection setup”. Grant all privileges to teamcityuser for teamcity db: grant all privileges on teamcity.* to notify MySQL that we’ve changed privileges, we need to flush them: FLUSH PRIVILEGES Go to MySQL console by typing: sudo mysql -u root -pĬreate a database for TeamCity: create database teamcity Ĭreate teamcityuser for this database (Please select your own password instead of ): create user identified by '' The more detailed instruction you can find here. Install MySQL (If you have it already installed just skip this step) sudo apt-get install mysql-server Install and configure Database for TeamCity I’ll recommend to leave this page opened in the browser and go back to our terminal to set up the database. So, select MySQL from the “Select the database type” dropdown: It’s a good idea to install and use a separate database. However, it’s used for demonstration purposes. TeamCity comes with its own pre-configured database by default. It’s time to move forward to DataBase configuration by clicking on “Proceed” button. To keep our TeamCity inside its own “TeamCity” folder, let’s change “Data Directory location on the TeamCity server machine” from “/root/.BuildServer” to “/opt/jetbrains/TeamCity/.BuildServer”. Wait for a while (let’s give TC time to start up) and then try to load the following page should be able to see TeamCity Start page. Lock file: /opt/jetbrains/TeamCity/buildAgent/logs/ĭone, see log at /opt/jetbrains/TeamCity/buildAgent/logs/teamcity-agent.log Starting TeamCity Build Agent Launcher.Īgent home directory is /opt/jetbrains/TeamCity/buildAgent Java executable is found in '/usr/lib/jvm/java-8-oracle'. Using CLASSPATH: /opt/jetbrains/TeamCity/bin/bootstrap.jar:/opt/jetbrains/TeamCity/bin/tomcat-juli.jar Using JRE_HOME: /usr/lib/jvm/java-8-oracle Using CATALINA_TMPDIR: /opt/jetbrains/TeamCity/temp Using CATALINA_HOME: /opt/jetbrains/TeamCity You should get output similar to this one: Using CATALINA_BASE: /opt/jetbrains/TeamCity Now, let’s start TeamCity by executing a script: /opt/jetbrains/TeamCity/bin/runAll.sh start The last step for basic configuration is to create “teamcity” user: sudo useradd teamcityĪnd configure permissions for it: sudo chown -R teamcity:teamcity /opt/jetbrains/TeamCity The next step is to move our extracted folder called “TeamCity” under “/opt/jetbrains” directory: sudo mv /Downloads/TeamCity /opt/jetbrains So, let’s create it: sudo mkdir /opt & sudo mkdir /opt/jetbrains It’s highly recommended (but not required) to install TeamCity into “/opt/jetbrains/” directory. sudo wget Įxtract content from downloaded archive sudo tar -xvzf TeamCity-2017.1.2.tar.gz Navigate into the “Downloads” and pull up the latest version of TeamCity (2017.1.2 by the time I’m writing this article). If you want to just copy and paste the code from manual below, I’ll advise you to create one, by executing the following command: sudo mkdir /Downloads On the remote server, I usually have “Downloads” directory in the root folder and I use “wget” there. If you’re using ubuntu 14.04 for some reason there is a guide how to install Java 8 on ubuntu 14.04. Starting from 10s version, TeamCity requires Java 8. For complex workflows you’ll need more powerful machine.
0 Comments
Leave a Reply. |