Skip to content

Commit

Permalink
fixes manifest congruency
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikey committed Mar 24, 2023
1 parent 19bc443 commit eaa801c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,23 @@ func prepExecutionManifest(ctx context.Context, requestId string, request models
os.MkdirAll(filepath.Dir(manifestPath), os.ModePerm)

type Manifest struct {
FS_ROOT_PATH string `json:"fs_root_path,omitempty"`
ENTRY string `json:"entry,omitempty"`
LIMITED_FUEL int `json:"limited_fuel,omitempty"`
LIMITED_MEMORY int `json:"limited_memory,omitempty"`
PERMISSIONS []string `json:"permissions,omitempty"`
FS_ROOT_PATH string `json:"fs_root_path,omitempty"`
ENTRY string `json:"entry,omitempty"`
LIMITED_FUEL int `json:"limited_fuel,omitempty"`
LIMITED_MEMORY int `json:"limited_memory,omitempty"`
PERMISSIONS []string `json:"permissions,omitempty"`
DRIVERS_ROOT_PATH string `json:drivers_root_path,omitempty"`
RUNTIME_LOGGER string `json:runtime_logger,omitempty"`
}

data := Manifest{
FS_ROOT_PATH: tempFS,
ENTRY: functionPath,
LIMITED_FUEL: 100000000,
LIMITED_MEMORY: 200,
PERMISSIONS: request.Config.Permissions,
FS_ROOT_PATH: tempFS,
ENTRY: functionPath,
LIMITED_FUEL: 100000000,
LIMITED_MEMORY: 200,
PERMISSIONS: request.Config.Permissions,
DRIVERS_ROOT_PATH: config.Node.RuntimePath + "/drivers",
RUNTIME_LOGGER: tempFS + "/runtime-logger.log",
}

file, jsonError := json.MarshalIndent(data, "", " ")
Expand Down

0 comments on commit eaa801c

Please sign in to comment.