Commit 43c9a5fd authored by xiezhi's avatar xiezhi

fix

parent 528b1483
# 仓颉1.0.1模板配置文件 {
"version": "1.0.1",
"name": "仓颉1.0.1 HTTP服务器模板",
"tags": ["cangjie", "http-server", "java"],
"description": "仓颉1.0.1 HTTP服务器模板",
"init_commands": ["make install"],
"start_commands": ["make run"],
"stop_commands": ["make stop"],
[project] "mapping_ports": {
name = "cangjie1.0.1-template" "APP_PORT_1": 8080,
version = "1.0.1" "APP_PORT_2": 8081,
description = "仓颉1.0.1 HTTP服务器模板" "APP_PORT_3": 8082,
language = "cangjie" "APP_PORT_4": 8083
framework = "http-server" },
[build] "deploy": [
compiler = "cangjie" {
target = "java" "image_name": "cangjie-app",
source_dir = "src/main/cangjie" "app_access_entry": true,
output_dir = "build/classes" "ports": [
{
[runtime] "name": "APP_PORT_1",
main_class = "com.example.HelloWorld" "main_port": true,
port = 8080 "inner_access_env_key": "API_URL",
environment_variables = ["APP_PORT_1"] "open_access": true,
"open_access_env_key": "API_DOMAIN"
[docker] },
base_image = "hb.eazytec-cloud.com/eazytec/eazydevelop-cangjie:ubuntu20.04-cangjie1.0.1-latest" {
exposed_ports = ["8080"] "name": "APP_PORT_2",
"main_port": false,
[git] "inner_access_env_key": null,
remote_url = "https://gitlab.eazytec-cloud.com/eazy-template/cangjie1.0.1-template.git" "open_access": false,
"open_access_env_key": null
}
],
"docker_file_dir": "./",
"deploy_resources": {
"cpu_limit": 0.5,
"memory_limit": 2,
"storage_limit": 1
}
}
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment