From a730ee939b1d9407bc7c40d497682a46a96bb6aa Mon Sep 17 00:00:00 2001 From: BjoernAtBosch Date: Thu, 8 Jun 2023 12:11:50 +0200 Subject: [PATCH] Add simple examples for Docker build --- examples/seat-adjuster/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/seat-adjuster/README.md b/examples/seat-adjuster/README.md index 3088ee8c..c8cd8387 100644 --- a/examples/seat-adjuster/README.md +++ b/examples/seat-adjuster/README.md @@ -29,3 +29,20 @@ If you like to run this example without using Dapr as middleware, you may need t | `SDV_MIDDLEWARE_TYPE` | `"dapr"` | Defines the middleware type -> set to `"native"` | `SDV_MQTT_ADDRESS` | `"mqtt://localhost:1883"` | Address (and port) of the MQTT broker | `SDV_VEHICLEDATABROKER_ADDRESS` | `"grpc://localhost:55555"` | Address (and port) of the KUKSA Data Broker + + +## Building a Docker image + +This example app provides a Dockerfile to enable creating a Docker container image to run it. +The image must be build passing the repositories root folder as build context, e.g.: + +``` bash +docker build -f app/Dockerfile . +``` + +:warning: If your build environment works behind (corporate) **proxy**, please remember telling docker your proxy configuration. +If you've set the respective environment variables, this might work: + +``` bash +docker build -f app/Dockerfile . --build-arg http_proxy --build-arg HTTP_PROXY --build-arg https_proxy --build-arg HTTPS_PROXY --build-arg no_proxy --build-arg NO_PROXY +```