feat: publishing infernet-container-starter v0.2.0
This commit is contained in:
@ -3,8 +3,8 @@
|
||||
In this tutorial, we'll create a simple hello-world container that can be used
|
||||
with infernet.
|
||||
|
||||
> [!NOTE]
|
||||
> This directory `containers/hello-world` already includes the final result
|
||||
> [!NOTE]
|
||||
> This directory `containers/hello-world` already includes the final result
|
||||
> of this tutorial. Run the following tutorial in a new directory.
|
||||
|
||||
Let's get started! 🎉
|
||||
@ -88,7 +88,7 @@ This is a simple Dockerfile that:
|
||||
3. Copies the source code
|
||||
4. Runs the app on port `3000`
|
||||
|
||||
> [!IMPORTANT]
|
||||
> [!IMPORTANT]
|
||||
> App must be exposed on port `3000`. Infernet's orchestrator
|
||||
> will always assume that the container apps are exposed on that port within the container.
|
||||
> Users can then remap this port to any port that they want on the host machine
|
||||
@ -127,7 +127,7 @@ docker run --rm -p 3000:3000 --name hello hello-world
|
||||
In another terminal, run:
|
||||
|
||||
```
|
||||
curl localhost:3000
|
||||
curl "localhost:3000"
|
||||
```
|
||||
|
||||
It should return something like:
|
||||
@ -159,5 +159,5 @@ The output should be something like:
|
||||
|
||||
Your users will never call this endpoint directly. Instead, they will:
|
||||
|
||||
1. Either [create an off-chain job request](../../../README.md#L36) through the node API
|
||||
1. Either [create an off-chain job request](../hello-world#L36) through the node API
|
||||
2. Or they will make a subscription on their contracts
|
||||
|
||||
Reference in New Issue
Block a user