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: 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 go build -o ./run
gcc starter/starter.c -o starter/starter gcc starter/starter.c -o starter/starter
starter/create_rootfs.sh starter/create_rootfs.sh
install_minrootfs: init:
rm -rf starter/alpine-make-rootfs go mod init runner
go get github.com/containerd/cgroups
git clone https://github.com/alpinelinux/alpine-make-rootfs git clone https://github.com/alpinelinux/alpine-make-rootfs
mv alpine-make-rootfs starter/alpine-make-rootfs mv alpine-make-rootfs starter/alpine-make-rootfs
mkrootfs: mkrootfs:

View file

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