1 Star 0 Fork 0

叮当他爸/source-to-image

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
scripts.go 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
Jim Minter 提交于 2016-10-18 11:21 . fix lint warnings
package api
import (
"os"
)
const (
// Assemble is the name of the script responsible for the build process of the resulting image.
Assemble = "assemble"
// AssembleRuntime is the name of the script responsible for the preparation process of the resulting image.
AssembleRuntime = "assemble-runtime"
// Run is the name of the script responsible for running the final application.
Run = "run"
// SaveArtifacts is the name of the script responsible for storing dependencies etc. between builds.
SaveArtifacts = "save-artifacts"
// Usage is the name of the script responsible for printing the builder image's short info.
Usage = "usage"
// Environment contains list of key value pairs that will be set during the
// STI build. Users can use this file to provide extra configuration
// depending on the builder image used.
Environment = "environment"
)
const (
// UserScripts is the location of scripts downloaded from user provided URL (-s flag).
UserScripts = "downloads" + string(os.PathSeparator) + "scripts"
// DefaultScripts is the location of scripts downloaded from default location (io.openshift.s2i.scripts-url label).
DefaultScripts = "downloads" + string(os.PathSeparator) + "defaultScripts"
// SourceScripts is the location of scripts downloaded with application sources.
SourceScripts = "upload" + string(os.PathSeparator) + "src" + string(os.PathSeparator) + ".s2i" + string(os.PathSeparator) + "bin"
// UploadScripts is the location of scripts that will be uploaded to the image during STI build.
UploadScripts = "upload" + string(os.PathSeparator) + "scripts"
// Source is the location of application sources.
Source = "upload" + string(os.PathSeparator) + "src"
// ContextTmp is the location of applications sources off of a supplied context dir
ContextTmp = "upload" + string(os.PathSeparator) + "tmp"
// RuntimeArtifactsDir is the location of application artifacts and scripts that will be copied into a runtime image.
RuntimeArtifactsDir = "upload" + string(os.PathSeparator) + "runtimeArtifacts"
// IgnoreFile is the s2i version for ignore files like we see with .gitignore or .dockerignore .. initial impl mirrors documented .dockerignore capabilities
IgnoreFile = ".s2iignore"
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/yanjingtu/source-to-image.git
git@gitee.com:yanjingtu/source-to-image.git
yanjingtu
source-to-image
source-to-image
v1.1.6

搜索帮助