Build Source Management

Kato component creation has three modes: source code, mirror and application In the 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, and build environment parameters. These requirements are completed through the relevant settings of the component build source.

Source code

  • The source configuration of the source code includes basic code repository information including (repository address, branch, Tag, authorization information, etc.)

  • Different compilation environment parameter settings supported by each language

Mirror

  • The configurable parameters of mirroring are mainly mirroring address, authorized account information and mirroring start command.

Build Source Detection

When the component is created, the language of the build source is checked. 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, you need to perform the source code recheck operation to let Kato reset the component The compilation method will take effect.

  • Kato will not re-identify the language type during the source code compilation process, so if the language type of the component source code changes, the build source check must be performed again.

Automatic Build Settings

  • Auto-build refers to the operation of automatically triggering the build of Kato component version in a way. For detailed documentation, see Auto-build component

Build Parameter Settings

JAVA Maven Language Type

Parameter nameDefault valueOptional valueDescription
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 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 MIRRORURL (BUILD_MAVEN_MIRROR_URL)maven.gridworkz
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 nameDefault valueOptional valueDescription
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 nameDefault valueOptional valueDescription
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 support (BUILD_RUNTIMES_SERVER)tomcat85tomcat7, tomcat8, tomcat85, tomcat9, jetty7, jetty9
Start command (BUILD_PROCFILE)web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/*.jar

JAVA Gradle Language Type

Parameter nameDefault valueOptional valueDescription
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 nameDefault valueOptional valueDescription
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 nameDefault valueOptional valueDescription
Web component 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 nameDefault valueOptional valueDescription
Web component support (BUILD_RUNTIMES_SERVER)nginx​​apache

NodeJS Language Type

Parameter nameDefault valueOptional valueDescription
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 nameDefault valueOptional valueDescription
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 nameDefault valueOptional valueDescription
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 support (BUILD_RUNTIMES_SERVER)nginx​​apache

.NetCore Language Type

Parameter nameDefault valueOptional valueDescription
Compilation environment version (BUILD_DOTNET_SDK_VERSION)2.2-sdk-alpine3.0-sdk,2.2-sdk-alpine,2.1-sdkCompilation environment version
Operating environment version (BUILD_DOTNET_RUNTIME_VERSION)2.2-aspnetcore-runtime3.0-aspnetcore-runtime,2.2-aspnetcore-runtime,2.1-aspnetcore-runtimeOperating environment version

Dockerfile Language Type

Support ARG parameter setting, key-value mode

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