Skip to content

Commit 6afc5f7

Browse files
committed
Replace ghcr.io/restatedev/restate-dist with docker.io/restatedev/restate
1 parent cbfa957 commit 6afc5f7

File tree

11 files changed

+25
-35
lines changed

11 files changed

+25
-35
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ Have a look at how to start up the runtime in a Docker container in [this reposi
3737

3838
- For MacOS:
3939
```shell
40-
docker run --name restate_dev --rm -p 8080:8080 -p 9070:9070 -p 9071:9071 ghcr.io/restatedev/restate-dist:latest
40+
docker run --name restate_dev --rm -p 8080:8080 -p 9070:9070 -p 9071:9071 docker.io/restatedev/restate:latest
4141
```
4242
- For Linux:
4343
```shell
44-
docker run --name restate_dev --rm --network=host ghcr.io/restatedev/restate-dist:latest
44+
docker run --name restate_dev --rm --network=host docker.io/restatedev/restate:latest
4545
```
4646

4747
### Connect runtime and services

typescript/ecommerce-store/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ Restate is a system for easily building resilient applications using **distribut
1010

1111
## Prerequisites
1212

13-
> **Note**
14-
> Make sure you have [signed up for Restate's private beta](https://forms.gle/G8kDuucqhBoTfMwLA) and set up [access to Restate's packages](https://github.com/restatedev/restate-dist).
15-
1613
- Latest stable version of [NodeJS](https://nodejs.org/en/) >= v18.17.1 and [npm CLI](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) >= 9.6.7 installed.
1714
- [Docker Engine](https://docs.docker.com/engine/install/) to launch the Restate runtime (not needed for the app implementation itself).
1815
- Optional: Docker Compose

typescript/ecommerce-store/deployment/aws/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ docker push $ECR_REPOSITORY/shopping-cart-demo:1.0.2
3333
docker build -t $ECR_REPOSITORY/shopping-cart-webapp:1.0.2 ./react-shopping-cart
3434
docker push $ECR_REPOSITORY/shopping-cart-webapp:1.0.2
3535
# Restate runtime
36-
docker tag ghcr.io/restatedev/restate-dist:latest $ECR_REPOSITORY/restate-runtime:latest
36+
docker tag docker.io/restatedev/restate:latest $ECR_REPOSITORY/restate-runtime:latest
3737
docker push $ECR_REPOSITORY/restate-runtime:latest
3838
# Jaeger
3939
docker tag jaegertracing/all-in-one:1.37.0 $ECR_REPOSITORY/jaeger-all-in-one:1.37.0

typescript/ecommerce-store/deployment/docker/docker-compose-pg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- COLLECTOR_OTLP_ENABLED=true
1616

1717
runtime:
18-
image: ghcr.io/restatedev/restate-dist:latest
18+
image: docker.io/restatedev/restate:latest
1919
depends_on:
2020
- services
2121
- jaeger

typescript/ecommerce-store/deployment/docker/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- COLLECTOR_OTLP_ENABLED=true
1616

1717
runtime:
18-
image: ghcr.io/restatedev/restate-dist:latest
18+
image: docker.io/restatedev/restate:latest
1919
depends_on:
2020
- services
2121
- jaeger

typescript/ecommerce-store/deployment/knative/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ kn quickstart kind
1010
```
1111

1212
2. Build the Docker images for the web application and backend services:
13+
1314
```shell
1415
docker build -t dev.local/shopping-cart/react-app:0.0.1 ./react-shopping-cart
1516
docker build ./services/ -t dev.local/shopping-cart/services:0.0.1
@@ -20,7 +21,7 @@ Upload the images to the cluster:
2021
```shell
2122
kind load docker-image --name knative dev.local/shopping-cart/services:0.0.1
2223
kind load docker-image --name knative dev.local/shopping-cart/react-app:0.0.1
23-
kind load docker-image --name knative ghcr.io/restatedev/restate-dist:latest
24+
kind load docker-image --name knative docker.io/restatedev/restate:latest
2425
```
2526

2627
3. Create the `shopping-cart` namespace
@@ -59,6 +60,7 @@ curl -X POST http://localhost:9070/endpoint/discover -H 'content-type: applicati
5960
```
6061

6162
8. Fill the state of the product service with a list of products:
63+
6264
```shell
6365
cd deployment/local && ./init_state.sh "localhost:8080" && cd -
6466
```

typescript/ecommerce-store/deployment/knative/deploy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: restate-runtime
19-
image: ghcr.io/restatedev/restate-dist:latest
19+
image: docker.io/restatedev/restate:latest
2020
imagePullPolicy: Never
2121
ports:
2222
- containerPort: 8080

typescript/food-ordering/README.md

+15-18
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@ The `OrderService` interacts with the restaurants' external point of sale servic
1010

1111
The example illustrates the following aspects:
1212

13-
* How you can use Restate's side effects to make synchronous calls to external services.
14-
* How you can use Awakeables to connect Restate handlers with asynchronous external services.
15-
* How to resolve Awakeables from an external service and thereby resuming Restate invocations.
16-
* How delayed calls can be used to schedule tasks for later moments in time.
13+
- How you can use Restate's side effects to make synchronous calls to external services.
14+
- How you can use Awakeables to connect Restate handlers with asynchronous external services.
15+
- How to resolve Awakeables from an external service and thereby resuming Restate invocations.
16+
- How delayed calls can be used to schedule tasks for later moments in time.
1717

1818
## Detailed description
1919

20-
This application implements the order processing middleware that sits between food delivery providers and restaurants.
21-
Delivery providers forward orders to the Restate application via API requests (CreateOrder / CancelOrder / PrepareOrder).
20+
This application implements the order processing middleware that sits between food delivery providers and restaurants.
21+
Delivery providers forward orders to the Restate application via API requests (CreateOrder / CancelOrder / PrepareOrder).
2222
The Restate services process the order and forward it to the appropriate point-of-sale (restaurant handling the order).
2323

24-
The app is implemented as a single keyed service that is keyed by `orderId`` and maintains the state machine of that order (i.e. the status of the order) as state in Restate.
24+
The app is implemented as a single keyed service that is keyed by `orderId`` and maintains the state machine of that order (i.e. the status of the order) as state in Restate.
2525

26-
When an order is created a workflow is executed to check if the restaurant is open.
27-
If this is the case then the order is accepted and gets created in the point of sales system of the restaurant.
28-
The workflow becomes just another gRPC method that can be called and retried.
26+
When an order is created a workflow is executed to check if the restaurant is open.
27+
If this is the case then the order is accepted and gets created in the point of sales system of the restaurant.
28+
The workflow becomes just another gRPC method that can be called and retried.
2929
It calls the point of sales software of the restaurants as side effects and saves the state of the workflow in Restate.
3030

3131
### Delayed calls
3232

33-
Customers can schedule an order for later on (deliveryDelay).
34-
This is implemented via Restate's delayed calls that schedule the preparation of the order to take place at the desired time.
35-
This delayed call is persisted in Restate.
33+
Customers can schedule an order for later on (deliveryDelay).
34+
This is implemented via Restate's delayed calls that schedule the preparation of the order to take place at the desired time.
35+
This delayed call is persisted in Restate.
3636
Restate ensures that it happens, and takes care of retries to prevent lost orders and unhappy customers.
3737

3838
Have a look at the implementation of the `createOrder` function in the OrderService in `services/src/order_service.ts`.
@@ -41,16 +41,13 @@ Have a look at the implementation of the `createOrder` function in the OrderServ
4141

4242
When the order needs to be prepared, the `OrderService` creates an awakeable (persistent promise) and sends the awakeable ID together with the preparation request to the point of sales API of the restaurant.
4343
The preparation is an asynchronous operation during which the workflow is paused.
44-
Once the restaurant has finished the preparation, it resolves the awakeable to resume the `OrderService`.
44+
Once the restaurant has finished the preparation, it resolves the awakeable to resume the `OrderService`.
4545
The `OrderService` then notifies the delivery provider that they should send a driver to the restaurant.
4646

47-
Have a look at the implementation of the `prepareOrder` function in the `OrderService`` in `services/src/order_service.ts`.
47+
Have a look at the implementation of the `prepareOrder` function in the ` OrderService`` in `services/src/order_service.ts`.
4848

4949
## Running this example
5050

51-
> **Note**
52-
> Make sure you have [signed up for Restate's private beta](https://forms.gle/G8kDuucqhBoTfMwLA) and set up [access to Restate's packages](https://github.com/restatedev/restate-dist).
53-
5451
- Latest stable version of [NodeJS](https://nodejs.org/en/) >= v18.17.1 and [npm CLI](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) >= 9.6.7 installed.
5552
- [Docker Engine](https://docs.docker.com/engine/install/) to launch the Restate runtime (not needed for the app implementation itself).
5653
- Optional: Docker Compose

typescript/food-ordering/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- COLLECTOR_OTLP_ENABLED=true
1717

1818
runtime:
19-
image: ghcr.io/restatedev/restate-dist:latest
19+
image: docker.io/restatedev/restate:latest
2020
depends_on:
2121
- services
2222
- jaeger

typescript/payment-api/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ and failures.
2424

2525
### Prerequisites
2626

27-
> **Note**
28-
> Make sure you have [signed up for Restate's private beta](https://forms.gle/G8kDuucqhBoTfMwLA) and set up [access to Restate's packages](https://github.com/restatedev/restate-dist).
29-
3027
- Latest stable version of [NodeJS](https://nodejs.org/en/) >= v18.17.1 and [npm CLI](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) >= 9.6.7 installed.
3128
- [Docker Engine](https://docs.docker.com/engine/install/) to launch the Restate runtime (not needed for the app implementation itself).
3229

typescript/ticket-reservation/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ Here is an incomplete list of simplifications to the application that are possib
5959

6060
### Prerequisites
6161

62-
> **Note**
63-
> Make sure you have [signed up for Restate's private beta](https://forms.gle/G8kDuucqhBoTfMwLA) and set up [access to Restate's packages](https://github.com/restatedev/restate-dist).
64-
6562
- Latest stable version of [NodeJS](https://nodejs.org/en/) >= v18.17.1 and [npm CLI](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) >= 9.6.7 installed.
6663
- [Docker Engine](https://docs.docker.com/engine/install/) to launch the Restate runtime (not needed for the app implementation itself).
6764

0 commit comments

Comments
 (0)