now it compiles :3

This commit is contained in:
root 2024-06-20 22:06:53 +05:00
parent 24ff954904
commit 0cae2e1560
2 changed files with 4 additions and 6 deletions

View file

@ -1,12 +1,10 @@
all:
rm -rf starter/alpine-make-rootfs
git clone https://github.com/alpinelinux/alpine-make-rootfs
mv alpine-make-rootfs starter/alpine-make-rootfs
go build -o ./run
gcc starter/starter.c -o starter/starter
starter/create_rootfs.sh
install_minrootfs:
rm -rf starter/alpine-make-rootfs
init:
go mod init runner
go get github.com/containerd/cgroups
git clone https://github.com/alpinelinux/alpine-make-rootfs
mv alpine-make-rootfs starter/alpine-make-rootfs
mkrootfs:

View file

@ -19,7 +19,7 @@ const runner_username string = "gaterunner"
const runIdLength = 20
var coresIsolated []int
type Limits {
type Limits struct {
core int
memory int
}