v1

package
v0.3.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CUDNNVersionDefault = "8"
)
View Source
const (
	PythonVersionDefault = "3.9"
)

Variables

View Source
var DefaultGraph = NewGraph()

Functions

func Base

func Base(image string, dev bool) error

func CRANMirror

func CRANMirror(url string) error

func CUDA

func CUDA(version, cudnn string)

func Conda

func Conda(mamba bool)

func CondaChannel

func CondaChannel(channel string) error

func CondaPackage

func CondaPackage(deps []string, channel []string, envFile string) error

func Copy

func Copy(src, dest, image string)

func Entrypoint

func Entrypoint(args []string)

func GPU

func GPU(numGPUs int)

func GetCUDAImage

func GetCUDAImage(image string, cuda *string, cudnn string, dev bool) string

GetCUDAImage finds the correct CUDA base image refer to https://hub.docker.com/r/nvidia/cuda/tags

func GetDefaultGraphHash

func GetDefaultGraphHash() string

A stream of gobs is self-describing. Each data item in the stream is preceded by a specification of its type, expressed in terms of a small set of predefined types. Pointers are not transmitted, but the things they point to are transmitted; that is, the values are flattened. see https://pkg.go.dev/encoding/gob#hdr-Basics we hash the blobs to determined if the graph changed.

func Git

func Git(name, email, editor string) error

func HTTP

func HTTP(url, checksum, filename string) error

func Julia

func Julia()

func JuliaPackage

func JuliaPackage(deps []string) error

func JuliaPackageServer

func JuliaPackageServer(url string) error

func Jupyter

func Jupyter(pwd string, port int64) error

func Mount

func Mount(src, dest string)

func NewGraph

func NewGraph() ir.Graph

func Owner

func Owner(uid, gid int)

func PyPIIndex

func PyPIIndex(url, extraURL string, trust bool) error

func PyPIPackage

func PyPIPackage(deps []string, requirementsFile string, wheels []string) error

func Python

func Python(version string) error

func RLang

func RLang()

func RPackage

func RPackage(deps []string) error

func RStudioServer

func RStudioServer() error

func Repo

func Repo(url, description string)

func Run

func Run(commands []string, mount bool) error

func RuntimeCommands

func RuntimeCommands(commands map[string]string)

func RuntimeDaemon

func RuntimeDaemon(commands [][]string)

func RuntimeEnviron

func RuntimeEnviron(env map[string]string, path []string)

func RuntimeExpose

func RuntimeExpose(envdPort, hostPort int, serviceName string, listeningAddr string) error

func RuntimeInitScript

func RuntimeInitScript(commands []string)

func Shell

func Shell(shell string) error

func ShmSize added in v0.3.40

func ShmSize(shmSize int)

func SystemPackage

func SystemPackage(deps []string)

func UbuntuAPT

func UbuntuAPT(source string) error

UbuntuAPT updates the Ubuntu apt source.list in the image.

func VSCodePlugins

func VSCodePlugins(plugins []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL