| |
@@ -1,23 +1,16 @@
|
| |
- = Getting Set Up (using Docker)
|
| |
+ = Getting Set Up (using Podman)
|
| |
Rick Elrod
|
| |
:page-authors: {author}
|
| |
|
| |
== Preliminary Notes
|
| |
|
| |
It is now easier to get started on developing the Fedora Websites with the use
|
| |
- of Docker (or Podman).
|
| |
+ of Podman.
|
| |
|
| |
We ship a `Dockerfile` which will install dependencies into an image
|
| |
for you, so all you are left to do is mount the site as a volume, pull
|
| |
translations, and start the development server.
|
| |
|
| |
- [NOTE]
|
| |
- ====
|
| |
- The documentation here refers to `docker`, but our fairly simple use
|
| |
- of it means that things are likely to work with `podman` with little
|
| |
- modification.
|
| |
- ====
|
| |
-
|
| |
== Building the container image
|
| |
|
| |
First clone the repository:
|
| |
@@ -30,11 +23,11 @@
|
| |
(You may instead clone your fork of it, or add your fork as a second
|
| |
remote later on.)
|
| |
|
| |
- Now ensure Docker is running and run:
|
| |
+ Now build the container image with:
|
| |
|
| |
[source,bash]
|
| |
----
|
| |
- sudo docker build -t fedora-websites .
|
| |
+ sudo podman build -t fedora-websites .
|
| |
----
|
| |
|
| |
This will generate a container image for you to use.
|
| |
@@ -46,10 +39,10 @@
|
| |
|
| |
[source,bash]
|
| |
----
|
| |
- sudo docker run -it --rm -v "$(pwd):/opt/:z" fedora-websites ./scripts/pull-translations.sh
|
| |
+ sudo podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites ./scripts/pull-translations.sh
|
| |
----
|
| |
|
| |
- Notice here that we are mounting a volume (`-v`) in Docker which
|
| |
+ Notice here that we are mounting a volume (`-v`) via podman which
|
| |
points to our check-out of the repository. We're referring to the
|
| |
`fedora-websites` image created above, and calling the
|
| |
`./scripts/pull-translations.sh` script from within it.
|
| |
@@ -61,7 +54,7 @@
|
| |
|
| |
[source,bash]
|
| |
----
|
| |
- sudo docker run -it --rm -v "$(pwd):/opt/:z" fedora-websites python ./scripts/pull-magazine.sh
|
| |
+ sudo podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites python ./scripts/pull-magazine.py
|
| |
----
|
| |
|
| |
== Running the development server
|
| |
@@ -70,7 +63,7 @@
|
| |
|
| |
[source,bash]
|
| |
----
|
| |
- sudo docker run -it --rm -v "$(pwd):/opt/:z" -p 5000:5000 fedora-websites flask run --reload --host 0.0.0.0
|
| |
+ sudo podman run -it --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
|
| |
We are in the age of Fedora 32 where
podman
is the preferredcontainer runtime tool in the Fedora ecosystem. Let's promote this by
dropping references to Docker/docker from our instructions.