Build source management

There are three modes for Rainbond component creation::source code,mirrorand application market. Different creation methods correspond to different build source types of components. For developers, it may be necessary to frequently modify code branches, mirror tags, build environment parameters, etc.These requirements are accomplished through the relevant settings of the component build sources.

  • source code

    The source code construction source configuration includes the basic code warehouse information including (warehouse address, branch, Tag, authorization information, etc.)

    Different compilation environment parameter settings supported by each language

  • mirror

    The configurable parameters of the image are mainly the image address, authorized account information and image startup command.

Build source detection

When the component is created, the language of the build source is detected. In the subsequent continuous development, if the source code changes the language type, such as changing from the Java-Maven type to the Dockerfile type, it is necessary to perform the re-detection operation of the source code to let Rainbond reset the component’s Compile mode to take effect.

Rainbond will not re-identify the language type during the source code compilation process, so if the language type of the component source code changes, it must re-build the source detection.

Automatic build settings

Automatic build is an operation that automatically triggers the build of the Rainbond component version in one way. For details, see Automatic Build

Build parameter settings

Please note that the configuration items of each language may change with the upgrade of the version, so please reflect on the product.

JAVA Maven language type

parameter nameDefaultsoptional valueillustrate
Clear build cache (NO_CACHE)trueNot enabled by default
OpenJDK version (BUILD_RUNTIMES)1.81.6,1.7,1.8,1.9,10,11OpenJDK version
Enable OracleJDK (BUILD_ENABLE_ORACLEJDK)trueOracleJDK is not enabled by default
OracleJDK download path (BUILD_ENABLE_ORACLEJDK)OracleJDK (linux amd64) download path
Maven version (BUILD_RUNTIMES_MAVEN)3.3.13.0.5, 3.1.1, 3.2.5, 3.3.1, 3.3.9Maven version
Web Component Server Support (BUILD_RUNTIMES_SERVER)tomcat85tomcat7,tomcat8,tomcat85,tomcat9,jetty7,jetty9
Disable Maven Mirror (BUILD_MAVEN_MIRROR_DISABLE)trueMaven mirror is enabled by default. If Mirror is disabled, the Mirror configuration will not take effect.
MAVEN MIRROR OF configuration (BUILD_MAVEN_MIRROR_OF)
MAVEN MIRROR_URL(BUILD_MAVEN_MIRROR_URL)maven.goodrain.me
Maven build parameters (BUILD_MAVEN_CUSTOM_OPTS)-DskipTestsMaven build parameters
Maven build global parameters (BUILD_MAVEN_CUSTOM_GOALS)clean dependency:list installMaven build parameters
MAVEN build Java parameter configuration (BUILD_MAVEN_JAVA_OPTS)-Xmx1024m
Start command (BUILD_PROCFILE)War package:web: java $JAVA_OPTS -jar ./webapp-runner.jar —port $PORT target/.war;Jar package:web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/*.jar

JAVA Jar language type

parameter nameDefaultsoptional valueillustrate
OpenJDK version (BUILD_RUNTIMES)1.81.6,1.7,1.8,1.9,10,11OpenJDK version
Enable OracleJDK (BUILD_ENABLE_ORACLEJDK)trueOracleJDK is not enabled by default
OracleJDK download path (BUILD_ENABLE_ORACLEJDK)OracleJDK (linux amd64) download path
Start command (BUILD_PROCFILE)web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/*.jar

JAVA War language type

parameter nameDefaultsoptional valueillustrate
OpenJDK version (BUILD_RUNTIMES)1.81.6,1.7,1.8,1.9,10,11OpenJDK version
Enable OracleJDK (BUILD_ENABLE_ORACLEJDK)trueOracleJDK is not enabled by default
OracleJDK download path (BUILD_ENABLE_ORACLEJDK)OracleJDK (linux amd64) download path
Web Component Server Support (BUILD_RUNTIMES_SERVER)tomcat85tomcat7,tomcat8,tomcat85,tomcat9,jetty7,jetty9
Startup Command (BUILD_PROCFILE)web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/*.jar

JAVA Gradle language type

parameter nameDefaultsoptional valueillustrate
OpenJDK version (BUILD_RUNTIMES)1.81.6,1.7,1.8,1.9,10,11OpenJDK version
Enable OracleJDK (BUILD_ENABLE_ORACLEJDK)trueOracleJDK is not enabled by default
OracleJDK download path (BUILD_ENABLE_ORACLEJDK)OracleJDK (linux amd64) download path

Python language type support

parameter nameDefaultsoptional valueillustrate
Python version (BUILD_RUNTIMES)python-3.6.6python-3.4.3,python-3.5.3,python-3.6.0,python-3.6.1,python-3.6.2,python-3.6.3,python-3.6.4,python-3.6.5,python- 3.6.6, python-2.7.9, python-2.7.10, python-2.7.13, python-2.7.14, python-2.7.15
Pypi source (BUILD_PIP_INDEX_URL)https://pypi.tuna.tsinghua.edu.cn/simplepip source
Clear build cache (NO_CACHE)trueNot enabled by default

PHP language type

parameter nameDefaultsoptional valueillustrate
web component server support (BUILD_RUNTIMES_SERVER)apachenginx
PHP version (BUILD_RUNTIMES)5.6.355.5.38, 5.6.35, 7.0.29, 7.1.16
Clear build cache (NO_CACHE)trueNot enabled by default

static language type

parameter nameDefaultsoptional valueillustrate
web component server support (BUILD_RUNTIMES_SERVER)nginxapache

NodeJS language type

parameter nameDefaultsoptional valueillustrate
Node version (BUILD_RUNTIMES)8.12.04.9.1, 5.12.0, 6.14.4, 7.10.1, 8.12.0, 9.11.2, 10.13.0, 11.1.0Node version
Clear build cache (NO_CACHE)trueNot enabled by default

Golang language type

parameter nameDefaultsoptional valueillustrate
Golang version (BUILD_RUNTIMES)go1.11.2go1.9.7 go1.8.7 go1.11.2 go1.11 go1.11.1 go1.10.5 go1.10.4Go version

NodeJS front-end language type

parameter nameDefaultsoptional valueillustrate
Node version (BUILD_RUNTIMES)8.12.04.9.1, 5.12.0, 6.14.4, 7.10.1, 8.12.0, 9.11.2, 10.13.0, 11.1.0Node version
Clear build cache (NO_CACHE)trueNot enabled by default
web component server support (BUILD_RUNTIMES_SERVER)nginxapache

.NetCore language types

parameter nameDefaultsoptional valueillustrate
Build environment version (BUILD_DOTNET_SDK_VERSION)2.2-sdk-alpine3.0-sdk, 2.2-sdk-alpine, 2.1-sdkbuild environment version
Runtime environment version (BUILD_DOTNET_RUNTIME_VERSION)2.2-aspnetcore-runtime3.0-aspnetcore-runtime, 2.2-aspnetcore-runtime, 2.1-aspnetcore-runtimeRuntime environment version

Dockerfile language type

Support ARG parameter setting, key-value mode

  1. ARG CODE_VERSION=latest
  2. FROM base:${CODE_VERSION}
  3. CMD /code/run-app

More advanced build source configuration

📄️ Change build typeThis article explains how to replace different build source types based on Rainbond