mirror of
https://github.com/actix/examples
synced 2024-11-24 06:43:00 +01:00
Updated basics/docker_sample to v4. (#504)
This commit is contained in:
parent
3e2b0832fa
commit
25066b754f
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2331,7 +2331,7 @@ checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0"
|
|||||||
name = "docker_sample"
|
name = "docker_sample"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-web 3.3.3",
|
"actix-web 4.0.0-beta.21",
|
||||||
"env_logger 0.9.0",
|
"env_logger 0.9.0",
|
||||||
"log",
|
"log",
|
||||||
]
|
]
|
||||||
|
@ -5,6 +5,6 @@ authors = ["docker_sample <docker_sample@sample.com>"]
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "4.0.0-beta.21"
|
||||||
env_logger = "0.9"
|
env_logger = "0.9"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
@ -9,14 +9,14 @@ docker build -t docker_sample .
|
|||||||
## Run built image
|
## Run built image
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run -d -p 5000:5000 docker_sample
|
docker run -d -p 8080:8080 docker_sample
|
||||||
# and the server should start instantly
|
# and the server should start instantly
|
||||||
curl http://localhost:5000
|
curl http://localhost:8080
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running unit tests
|
## Running unit tests
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker build -t docker_sample:test --target base .
|
docker build -t docker_sample:test .
|
||||||
docker run --rm docker_sample:test
|
docker run --rm docker_sample:test
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user