Documentation ¶
Index ¶
- Variables
- func Base(os, language string) error
- func CRANMirror(url string) error
- func CUDA(version, cudnn string)
- func Compile(ctx context.Context, cachePrefix string, pub string) (*llb.Definition, error)
- func CondaChannel(channel string) error
- func CondaPackage(deps []string, channel []string)
- func Entrypoint(buildContextDir string) ([]string, error)
- func ExposedPorts() (map[string]struct{}, error)
- func GPU(numGPUs int)
- func GPUEnabled() bool
- func Git(name, email, editor string) error
- func JuliaPackage(deps []string)
- func JuliaPackageServer(url string) error
- func Jupyter(pwd string, port int64) error
- func Labels() (map[string]string, error)
- func NumGPUs() int
- func PyPIIndex(mode, url, extraURL string) error
- func PyPIPackage(deps []string, requirementsFile *string) error
- func RPackage(deps []string)
- func Run(commands []string) error
- func Shell(shell string) error
- func SystemPackage(deps []string)
- func UbuntuAPT(mode, source string) error
- func VSCodePlugins(plugins []string) error
- type CondaConfig
- type GitConfig
- type Graph
- func (g Graph) CacheID(filename string) string
- func (g Graph) Compile(uid, gid int) (llb.State, error)
- func (g Graph) CondaEnabled() bool
- func (g Graph) Entrypoint(buildContextDir string) ([]string, error)
- func (g Graph) ExposedPorts() (map[string]struct{}, error)
- func (g Graph) GPUEnabled() bool
- func (g Graph) Labels() (map[string]string, error)
- type JupyterConfig
- type Language
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultGraph = NewGraph()
Functions ¶
func CRANMirror ¶ added in v0.1.0
func CondaChannel ¶ added in v0.1.0
func CondaPackage ¶ added in v0.1.0
func Entrypoint ¶ added in v0.2.0
func ExposedPorts ¶ added in v0.2.0
func GPUEnabled ¶
func GPUEnabled() bool
func JuliaPackage ¶ added in v0.2.0
func JuliaPackage(deps []string)
func JuliaPackageServer ¶ added in v0.2.0
func PyPIPackage ¶
func SystemPackage ¶
func SystemPackage(deps []string)
func VSCodePlugins ¶
Types ¶
type CondaConfig ¶ added in v0.1.0
type Graph ¶
type Graph struct { OS string Language Shell string CUDA *string CUDNN *string NumGPUs int UbuntuAPTSource *string CRANMirrorURL *string JuliaPackageServer *string PyPIIndexURL *string PyPIExtraIndexURL *string PublicKeyPath string PyPIPackages []string RPackages []string JuliaPackages []string SystemPackages []string VSCodePlugins []vscode.Plugin Exec []string *JupyterConfig *GitConfig *CondaConfig Writer compileui.Writer CachePrefix string // contains filtered or unexported fields }
A Graph contains the state, such as its call stack and thread-local storage.
func (Graph) CondaEnabled ¶ added in v0.1.0
func (Graph) Entrypoint ¶ added in v0.2.0
func (Graph) ExposedPorts ¶ added in v0.2.0
func (Graph) GPUEnabled ¶
type JupyterConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.