From 3eb15654ae35c50f41c34bb2f216f1fbb6993f6b Mon Sep 17 00:00:00 2001 From: Paul W. Frields Date: Sep 13 2019 14:47:05 +0000 Subject: Use -t with docker or podman to alleviate buffering issue --- diff --git a/modules/ROOT/pages/setup-docker.adoc b/modules/ROOT/pages/setup-docker.adoc index a798846..9853710 100644 --- a/modules/ROOT/pages/setup-docker.adoc +++ b/modules/ROOT/pages/setup-docker.adoc @@ -46,17 +46,9 @@ the container: [source,bash] ---- -sudo docker run --rm -v "$(pwd):/opt/:z" fedora-websites ./scripts/pull-translations.sh +sudo docker run -t --rm -v "$(pwd):/opt/:z" fedora-websites ./scripts/pull-translations.sh ---- -[NOTE] -==== -This might take some time, and due to STDOUT buffering from Docker, it -might look odd for a while (writing partial lines to your terminal -until it is done). Just be patient and it should hopefully finish -within a minute or so. -==== - Notice here that we are mounting a volume (`-v`) in Docker which points to our check-out of the repository. We're referring to the @@ -69,7 +61,7 @@ Now we are ready to run the development server: [source,bash] ---- -sudo docker run --rm -v "$(pwd):/opt/:z" -p 5000:5000 fedora-websites flask run --reload --host 0.0.0.0 +sudo docker run -t --rm -v "$(pwd):/opt/:z" -p 5000:5000 fedora-websites flask run --reload --host 0.0.0.0 ---- Note that we need `-p 5000:5000` so that we can access the development