TaskC

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0

README

TaskC

TaskC is for Task Closure, which provides a modular way to the Building, Upgrading, Running of containers.

User Requirements

  1. CNI plugins
$ apt install containernetworking-plugins

or for the latest version

$ sudo mkdir -p /opt/cni/bin
$ curl -L https://github.com/containernetworking/plugins/releases/download/v1.6.2/cni-plugins-linux-amd64-v1.6.2.tgz | sudo tar -C /opt/cni/bin -xz
  1. (Optional) nvidia-container-cli
$ curl -L https://github.com/NVIDIA/libnvidia-container/raw/refs/heads/gh-pages/stable/deb/amd64/libnvidia-container1_1.17.4-1_amd64.deb -o libnvidia-container1_1.17.4-1_amd64.deb
$ curl -L https://github.com/NVIDIA/libnvidia-container/raw/refs/heads/gh-pages/stable/deb/amd64/libnvidia-container-tools_1.17.4-1_amd64.deb -o libnvidia-container-tools_1.17.4-1_amd64.deb
$ sudo dpkg -i libnvidia-container1_1.17.4-1_amd64.deb
$ sudo dpkg -i libnvidia-container-tools_1.17.4-1_amd64.deb

How to Build

User

$ apt install gcc # for compiling libcontainer
$ bash scripts/build.sh
$ taskc

Prefab Service Proxy

$ cd cmd/prefabservice
$ go build
$ sudo ./prefabservice -v -upsteam https://prefab.cs.ac.cn:10062

Prefab Service

$ bash scripts/install-multi-pythons.sh # for building wheels from sources
$ cd cmd/prefabservice
$ go build
$ sudo ./prefabservice -v

Directories

Path Synopsis
cmd
prefabservice command
taskc command
internal
packing
Modified from https://github.com/blakesmith/ar for go:1.20
Modified from https://github.com/blakesmith/ar for go:1.20
pkg
prjpython
Generate a blueprint for python project folder or single python file
Generate a blueprint for python project folder or single python file

Jump to

Keyboard shortcuts

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