Skip to content

Provider Types

Tsuru supports multiple SDK provider types. This page documents the available providers and their specific features.

JDK (Java Development Kit)

The JDK provider allows you to install and manage different Java Development Kit distributions.

Available Vendors

JDK requires explicitly specifying a vendor:

Zulu

Azul Zulu is a certified build of OpenJDK that is fully compliant with the Java SE standard.

bash
# Install Zulu JDK
tsuru install jdk zulu 21

GraalVM Community Edition

GraalVM Community Edition is a high-performance JDK distribution.

bash
# Install GraalVM Community Edition
tsuru install jdk graalcommunity 24

Version Format

For JDK, you can specify versions in the following formats:

  • Major version only: 21, 17, 11
  • Major.Minor: 21.0, 17.0.8
  • Full version: 21.0.1+12

Tsuru will find the latest matching version that satisfies your request.

Environment Variables

When using a JDK, Tsuru sets the following environment variables:

  • JAVA_HOME - Points to the root directory of the JDK installation
  • PATH - Updated to include the JDK's bin directory

NodeJS

The NodeJS provider allows you to install and manage different versions of Node.js.

Version Format

For NodeJS, you can specify versions in the following formats:

  • Major version only: 20, 18, 16
  • Major.Minor: 20.1, 18.16
  • Full version: 20.1.0

Environment Variables

When using NodeJS, Tsuru sets the following environment variables:

  • NODE_PATH - Points to the root directory of the NodeJS installation
  • PATH - Updated to include the NodeJS bin directory

Provider Selection

When installing or using a provider, you need to specify the provider type and, if applicable, the vendor:

bash
tsuru install <provider> [vendor] <version>

For providers that don't require an explicit vendor (like NodeJS), you can omit the vendor:

bash
tsuru install nodejs 20

For providers that do require a vendor (like JDK), you must specify it:

bash
tsuru install jdk zulu 21