github.com/openshift/source-to-image@v1.4.1-0.20240516041539-bf52fc02204e/pkg/api/constants/scripts.go (about) 1 package constants 2 3 import ( 4 "os" 5 ) 6 7 const ( 8 // Assemble is the name of the script responsible for the build process of the resulting image. 9 Assemble = "assemble" 10 11 // AssembleRuntime is the name of the script responsible for the preparation process of the resulting image. 12 AssembleRuntime = "assemble-runtime" 13 14 // Run is the name of the script responsible for running the final application. 15 Run = "run" 16 17 // SaveArtifacts is the name of the script responsible for storing dependencies etc. between builds. 18 SaveArtifacts = "save-artifacts" 19 20 // Usage is the name of the script responsible for printing the builder image's short info. 21 Usage = "usage" 22 23 // Environment contains list of key value pairs that will be set during the STI build. 24 // Users can use this file to provide extra configuration depending on the builder image used. 25 Environment = "environment" 26 27 // UserScripts is the location of scripts downloaded from user provided URL (-s flag). 28 UserScripts = "downloads" + string(os.PathSeparator) + "scripts" 29 30 // DefaultScripts is the location of scripts downloaded from default location (io.openshift.s2i.scripts-url label). 31 DefaultScripts = "downloads" + string(os.PathSeparator) + "defaultScripts" 32 33 // SourceScripts is the location of scripts downloaded with application sources. 34 SourceScripts = "upload" + string(os.PathSeparator) + "src" + string(os.PathSeparator) + ".s2i" + string(os.PathSeparator) + "bin" 35 36 // UploadScripts is the location of scripts that will be uploaded to the image during STI build. 37 UploadScripts = "upload" + string(os.PathSeparator) + "scripts" 38 39 // Source is the location of application sources. 40 Source = "upload" + string(os.PathSeparator) + "src" 41 42 // Injections is the location of injection content (configmaps+secrets). 43 Injections = "upload" + string(os.PathSeparator) + "injections" 44 45 // ContextTmp is the location of applications sources off of a supplied context dir 46 ContextTmp = "upload" + string(os.PathSeparator) + "tmp" 47 48 // RuntimeArtifactsDir is the location of application artifacts and scripts that will be copied into a runtime image. 49 RuntimeArtifactsDir = "upload" + string(os.PathSeparator) + "runtimeArtifacts" 50 51 // IgnoreFile is the s2i version for ignore files like we see with .gitignore or .dockerignore .. initial impl mirrors documented .dockerignore capabilities 52 IgnoreFile = ".s2iignore" 53 )