Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ volumes:

> Notice we added bind to local `./functions` directory. That is only nessessary for this getting started, since we will be executing our custom function.

> On startup, executor looks up its own container by hostname to connect it to the runtime networks, and exits if the hostname is not part of any container name. In the example above, `executor` is part of `openruntimes-executor`, so the lookup succeeds; using the full container name as the hostname avoids relying on a partial match.

3. Create `.env` file:

```
Expand Down
3 changes: 2 additions & 1 deletion app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@

/* Fetch own container information */
$hostname = gethostname() ?: throw new \RuntimeException('Could not determine hostname');
$selfContainer = $orchestration->list(['name' => $hostname])[0] ?? throw new \RuntimeException('Own container not found');
$selfContainer = $orchestration->list(['name' => $hostname])[0]
?? throw new \RuntimeException(sprintf('Own container not found for hostname "%s". Set the executor hostname to its container name.', $hostname));

/* Create desired networks if they don't exist */
$network->setup(
Expand Down
Loading