Skip to content

Commit

Permalink
Merge pull request #118 from open-runtimes/feat-allow-no-entrypoint
Browse files Browse the repository at this point in the history
Feat: Allow empty entrypoint
  • Loading branch information
Meldiron authored Oct 25, 2024
2 parents 5fb83f3 + ea246b6 commit 6c81516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function cleanUp(Orchestration $orchestration, Table $activeRuntimes, array $net
->desc("Create a new runtime server")
->param('runtimeId', '', new Text(64), 'Unique runtime ID.')
->param('image', '', new Text(128), 'Base image name of the runtime.')
->param('entrypoint', '', new Text(256), 'Entrypoint of the code file.', true)
->param('entrypoint', '', new Text(256, 0), 'Entrypoint of the code file.', true)
->param('source', '', new Text(0), 'Path to source files.', true)
->param('destination', '', new Text(0), 'Destination folder to store runtime files into.', true)
->param('variables', [], new Assoc(), 'Environment variables passed into runtime.', true)
Expand Down Expand Up @@ -820,7 +820,7 @@ function cleanUp(Orchestration $orchestration, Table $activeRuntimes, array $net
// Runtime-related
->param('image', '', new Text(128), 'Base image name of the runtime.', true)
->param('source', '', new Text(0), 'Path to source files.', true)
->param('entrypoint', '', new Text(256), 'Entrypoint of the code file.', true)
->param('entrypoint', '', new Text(256, 0), 'Entrypoint of the code file.', true)
->param('variables', [], new AnyOf([new Text(65535), new Assoc()], AnyOf::TYPE_MIXED), 'Environment variables passed into runtime.', true)
->param('cpus', 1, new FloatValidator(true), 'Container CPU.', true)
->param('memory', 512, new Integer(true), 'Container RAM memory.', true)
Expand Down

0 comments on commit 6c81516

Please sign in to comment.