From 25066b754fd245965eacdef808a44e3fbab664e6 Mon Sep 17 00:00:00 2001 From: PrivateDave <39413999+PrivateDave@users.noreply.github.com> Date: Sun, 30 Jan 2022 16:21:43 +0000 Subject: [PATCH] Updated basics/docker_sample to v4. (#504) --- Cargo.lock | 2 +- basics/docker_sample/Cargo.toml | 2 +- basics/docker_sample/README.MD | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 95039c6..e9f3760 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2331,7 +2331,7 @@ checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" name = "docker_sample" version = "0.1.0" dependencies = [ - "actix-web 3.3.3", + "actix-web 4.0.0-beta.21", "env_logger 0.9.0", "log", ] diff --git a/basics/docker_sample/Cargo.toml b/basics/docker_sample/Cargo.toml index d5be97c..ad41f78 100644 --- a/basics/docker_sample/Cargo.toml +++ b/basics/docker_sample/Cargo.toml @@ -5,6 +5,6 @@ authors = ["docker_sample "] edition = "2018" [dependencies] -actix-web = "3" +actix-web = "4.0.0-beta.21" env_logger = "0.9" log = "0.4" diff --git a/basics/docker_sample/README.MD b/basics/docker_sample/README.MD index a00a794..187d4c2 100644 --- a/basics/docker_sample/README.MD +++ b/basics/docker_sample/README.MD @@ -9,14 +9,14 @@ docker build -t docker_sample . ## Run built image ```shell -docker run -d -p 5000:5000 docker_sample +docker run -d -p 8080:8080 docker_sample # and the server should start instantly -curl http://localhost:5000 +curl http://localhost:8080 ``` ## Running unit tests ```shell -docker build -t docker_sample:test --target base . +docker build -t docker_sample:test . docker run --rm docker_sample:test ```