Documentation ¶
Index ¶
- Constants
- Variables
- func Base(image string, dev bool) error
- func CRANMirror(url string) error
- func CUDA(version, cudnn string)
- func Conda(mamba bool)
- func CondaChannel(channel string) error
- func CondaPackage(deps []string, channel []string, envFile string) error
- func Copy(src, dest, image string)
- func Entrypoint(args []string)
- func GPU(numGPUs int)
- func GetCUDAImage(image string, cuda *string, cudnn string, dev bool) string
- func GetDefaultGraphHash() string
- func Git(name, email, editor string) error
- func HTTP(url, checksum, filename string) error
- func Julia()
- func JuliaPackage(deps []string) error
- func JuliaPackageServer(url string) error
- func Jupyter(pwd string, port int64) error
- func Mount(src, dest string)
- func NewGraph() ir.Graph
- func Owner(uid, gid int)
- func PyPIIndex(url, extraURL string, trust bool) error
- func PyPIPackage(deps []string, requirementsFile string, wheels []string) error
- func Python(version string) error
- func RLang()
- func RPackage(deps []string) error
- func RStudioServer() error
- func Repo(url, description string)
- func Run(commands []string, mount bool) error
- func RuntimeCommands(commands map[string]string)
- func RuntimeDaemon(commands [][]string)
- func RuntimeEnviron(env map[string]string, path []string)
- func RuntimeExpose(envdPort, hostPort int, serviceName string, listeningAddr string) error
- func RuntimeInitScript(commands []string)
- func Shell(shell string) error
- func ShmSize(shmSize int)
- func SystemPackage(deps []string)
- func UbuntuAPT(source string) error
- func VSCodePlugins(plugins []string) error
Constants ¶
View Source
const (
CUDNNVersionDefault = "8"
)
View Source
const (
PythonVersionDefault = "3.9"
)
Variables ¶
View Source
var DefaultGraph = NewGraph()
Functions ¶
func CRANMirror ¶
func CondaChannel ¶
func Entrypoint ¶
func Entrypoint(args []string)
func GetCUDAImage ¶
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 JuliaPackage ¶
func JuliaPackageServer ¶
func RStudioServer ¶
func RStudioServer() error
func RuntimeCommands ¶
func RuntimeDaemon ¶
func RuntimeDaemon(commands [][]string)
func RuntimeEnviron ¶
func RuntimeExpose ¶
func RuntimeInitScript ¶
func RuntimeInitScript(commands []string)
func SystemPackage ¶
func SystemPackage(deps []string)
func VSCodePlugins ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.