From eb248a515f5c7694016c540ace41e815f2268d70 Mon Sep 17 00:00:00 2001 From: Carson Black Date: Jun 29 2020 00:23:35 +0000 Subject: Add instructions on building locally --- diff --git a/README.md b/README.md index 7ed3329..3d5f6d9 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,16 @@ https://docs.fedoraproject.org/en-US/websites/ Translations are handled by the Fedora [localization team](https://fedoraproject.org/wiki/L10N) on [Fedora Weblate](https://translate.stg.fedoraproject.org/projects/fedora-websites/). [![Translation status](https://translate.stg.fedoraproject.org/widgets/fedora-websites/-/287x66-white.png)](https://translate.stg.fedoraproject.org/engage/fedora-websites/?utm_source=widget) + +### Building Locally + +Podman is the recommended way of building fedora-websites. + +From the root of the repository, run the following commands to start a local server: + +``` +podman build -t fedora-websites . +podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites ./scripts/pull-translations.sh +podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites python ./scripts/pull-magazine.py +podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites python main.py +```