Documentation ¶
Index ¶
- Variables
- func ConfigTemplate(projectType string, path string) error
- func ConfigWizard() error
- func Create(imageTag string, dockerFilePath string) error
- func Export(image string, hostPath string, out string) error
- func GenerateDockerfile(dockerConfig DockerConfig) error
- func Run(projectPath string, valistFile Config) ([]string, error)
- type Config
- type DockerConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBuilds = map[string]string{ types.ProjectTypeBinary: "make build", types.ProjectTypeNode: "npm run build", types.ProjectTypeNPM: "npm run build", types.ProjectTypeGo: "go build", types.ProjectTypeRust: "cargo build", types.ProjectTypePython: "python3 -m build", types.ProjectTypeDocker: "", types.ProjectTypeCPP: "make build", types.ProjectTypeStatic: "", }
View Source
var DefaultImages = map[string]string{ types.ProjectTypeBinary: "gcc:bullseye", types.ProjectTypeNode: "node:buster", types.ProjectTypeNPM: "node:buster", types.ProjectTypeGo: "golang:buster", types.ProjectTypeRust: "rust:buster", types.ProjectTypePython: "python:buster", types.ProjectTypeDocker: "scratch", types.ProjectTypeCPP: "gcc:bullseye", types.ProjectTypeStatic: "", }
View Source
var DefaultInstalls = map[string]string{ types.ProjectTypeBinary: "make install", types.ProjectTypeNode: "npm install", types.ProjectTypeNPM: "npm install", types.ProjectTypeGo: "go get ./...", types.ProjectTypeRust: "cargo install", types.ProjectTypePython: "pip install -r requirements.txt", types.ProjectTypeDocker: "", types.ProjectTypeCPP: "make install", types.ProjectTypeStatic: "", }
View Source
var DefaultTemplates = map[string]string{ types.ProjectTypeBinary: "default.tmpl", types.ProjectTypeNode: "node.tmpl", types.ProjectTypeNPM: "npm.tmpl", types.ProjectTypeGo: "go.tmpl", types.ProjectTypeRust: "rust.tmpl", types.ProjectTypePython: "python.tmpl", types.ProjectTypeDocker: "docker.tmpl", types.ProjectTypeCPP: "cpp.tmpl", types.ProjectTypeStatic: "static.tmpl", }
Functions ¶
func ConfigTemplate ¶
ConfigTemplate creates a config from a project template.
func GenerateDockerfile ¶
func GenerateDockerfile(dockerConfig DockerConfig) error
Types ¶
type Config ¶
type Config struct { Type string `yaml:"type"` Org string `yaml:"org"` Repo string `yaml:"repo"` Tag string `yaml:"tag"` Meta string `yaml:"meta,omitempty"` Image string `yaml:"image,omitempty"` Build string `yaml:"build,omitempty"` Install string `yaml:"install,omitempty"` Out string `yaml:"out,omitempty"` Platforms map[string]string `yaml:"platforms,omitempty"` }
Config contains valist build settings.
Click to show internal directories.
Click to hide internal directories.