From 6d6538a19ba4968a8498bdcc850a2d0ac7fe6423 Mon Sep 17 00:00:00 2001 From: Derek Anderson Date: Wed, 12 Apr 2023 20:49:48 -0500 Subject: [PATCH] no longer use fuel for static manifest (#80) --- docker/Dockerfile | 2 +- executor/execute_function_internal_test.go | 2 -- executor/manifest.go | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 947d15e0..b464cf28 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,7 +11,7 @@ RUN curl -o ./gomplate -sSL https://github.com/hairyhenderson/gomplate/releases/ RUN chmod 755 gomplate # get the runtime -RUN curl -o ./runtime.tar.gz -sSL https://github.com/blocklessnetwork/runtime/releases/download/v0.0.12/blockless-runtime.linux-latest.x86_64.tar.gz +RUN curl -o ./runtime.tar.gz -sSL https://github.com/blocklessnetwork/runtime/releases/download/v0.0.13/blockless-runtime.ubuntu-20.04.x86_64.tar.gz RUN mkdir /app/runtime && tar -xvkf ./runtime.tar.gz -C /app/runtime # install blockchain client diff --git a/executor/execute_function_internal_test.go b/executor/execute_function_internal_test.go index dd18f90d..5acecc41 100644 --- a/executor/execute_function_internal_test.go +++ b/executor/execute_function_internal_test.go @@ -24,8 +24,6 @@ func TestExecute_WriteManifest(t *testing.T) { const expectedManifest = `{ "fs_root_path": "fs-root-path-value", "entry": "entry-path-value", - "limited_fuel": 100000000, - "limited_memory": 200, "permissions": [ "permission-string-a", "permission-string-b", diff --git a/executor/manifest.go b/executor/manifest.go index bd659bb1..a8fb0990 100644 --- a/executor/manifest.go +++ b/executor/manifest.go @@ -13,14 +13,10 @@ func (e *Executor) writeExecutionManifest(req execute.Request, paths requestPath manifest := struct { FSRootPath string `json:"fs_root_path,omitempty"` Entry string `json:"entry,omitempty"` - LimitedFuel int `json:"limited_fuel,omitempty"` - LimitedMemory int `json:"limited_memory,omitempty"` Permissions []string `json:"permissions,omitempty"` }{ FSRootPath: paths.fsRoot, Entry: paths.entry, - LimitedFuel: 100_000_000, - LimitedMemory: 200, Permissions: req.Config.Permissions, }