diff --git a/Makefile b/Makefile index 87bde14..2ada37b 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/runner/runner.go b/runner/runner.go index 1d87c62..b520f13 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -19,7 +19,7 @@ const runner_username string = "gaterunner" const runIdLength = 20 var coresIsolated []int -type Limits { +type Limits struct { core int memory int }