/
Spin Up Your Own Terracotta Instance

Spin Up Your Own Terracotta Instance

Build, configure, and deploy Terracotta

Terracotta is free and open source, so if you’d like to create your own instance, you’re welcome to do so by following the instructions below.

Building Terracotta

The Terracotta code is available in this repository: Terracotta GitHub , and the current stable version is the latest tag in GitHub. Use the README file there to build Terracotta. 

Terracotta is a java Spring Boot v3 application that uses Maven to build. The user interface (UI) is built with Vue.js v2 and needs to run yarn to build all the static files. The maven command includes everything necessary.

To generate a jar file (that will be created in the “target” directory) this command needs to be executed: 

  • mvn clean install  

*Please note, if test errors occur, try this command: 

  • mvn clean install -DskipTests=true 

*Please also note, to skip the yarn build, you can use -Dskip.yarn 

Configuring Terracotta

Application properties file 

To configure Terracotta, we will use an application properties file. The file can be named anything because we will define the name in the java command that launches the jar. A common name, however, would be “application.properties.”

This is a Spring Boot application, so any Spring configuration could be applied in this file.

Here is a line-by-line explanation of the configuration: 

  • (Optional) Server port - in case it needs to run in a port different from the default 8080: 

server.port=8090  

  • Thymeleaf necessary configuration:  

spring.thymeleaf.mode=HTML5 

  • Logging path - If we use nohup these will b