From 0cae2e1560f76b0f7a3d59ac9a83b81b209d1012 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Jun 2024 22:06:53 +0500 Subject: [PATCH] now it compiles :3 --- Makefile | 8 +++----- runner/runner.go | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) 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 }