Skip to content

Commit

Permalink
Added readme Build and push Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nax committed Jun 17, 2024
1 parent 930dda7 commit 05a8bab
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cd ../../
cd ../../../

docker build --file ./examples/Actor/DemoActor/Dockerfile -t demo-actor:latest .
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

cd ../../
cd ../../../

docker build --file ./examples/Actor/DemoActor/Dockerfile -t demo-actor:latest .
24 changes: 24 additions & 0 deletions examples/Actor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,27 @@ On Windows:
```sh
curl -X POST http://127.0.0.1:3500/v1.0/actors/DemoActor/abc/method/GetData
```

### Build and push Docker image
You can build the docker image of `DemoActor` service by running the following commands in the `DemoActor` project directory:

On Linux, MacOS:
``` Bash
. ./build-container.sh
```

On Windows:
``` PowerShell
powershell .\build-container.ps1
```

The build produce and image with tag `demo-actor:latest`.
Now the image can be pushed to your Docker registry by running the following commands:

``` Bash
# Replace <your-docker-registry> with your Docker registry
docket tag demo-actor:latest <your-docker-registry>/demo-actor:latest

# Push the image to your Docker registry
docker push <your-docker-registry>/demo-actor:latest
```

0 comments on commit 05a8bab

Please sign in to comment.