From 4408b5e400d6fa243032c4ce2725c6f3286537e0 Mon Sep 17 00:00:00 2001 From: ni-richard Date: Tue, 10 Sep 2019 15:07:38 +0200 Subject: [PATCH] Updated Building everything manually (markdown) --- Building-everything-manually.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Building-everything-manually.md b/Building-everything-manually.md index 5ffa40a..aabedbe 100644 --- a/Building-everything-manually.md +++ b/Building-everything-manually.md @@ -2,7 +2,7 @@ In case you would like to avoid running anything locally and/or pulling images f ### Connection among the images First of all, let's take a look at the `FROM` statements in each `Dockerfile`: -``` +```dockerfile Frontend: FROM avatao/debian:buster @@ -18,7 +18,7 @@ As you can see, we use multistage building in the base image, so we should move ### Building the images Make sure you have every [dependency](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/Setting-up-a-development-environment) installed, then clone the [baseimage](https://github.com/avatao-content/baseimage-tutorial-framework), [frontend](https://github.com/avatao-content/frontend-tutorial-framework) and [test](https://github.com/avatao-content/test-tutorial-framework) repositories next to each other. Finally, enter these commands to build all of them: -``` +```bash cd frontend-tutorial-framework docker build -t frontend-tutorial-framework:tag . cd ../baseimage-tutorial-framework @@ -28,6 +28,6 @@ docker build -t test-tutorial-framework -f solvable/Dockerfile . ``` After all of these, you can start the container any time with this command: -``` +```bash docker run --rm -p 8888:8888 -e AVATAO_SECRET=secret test-tutorial-framework ``` \ No newline at end of file