From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=Install Fedora CoreOS and build and run containers. |setup= # Have access to a (or install a new) FCOS instance running the '''next''' stream. |ac...")
 
No edit summary
Line 5: Line 5:


|actions=
|actions=
# Starting with either `podman` or `docker`, build a container from a Dockerfile. For example, you can try building [https://github.com/coreos/coreos-assembler coreos-assembler], which is what is used to build Fedora CoreOS itself. To do this:
# Using `podman`, build `fcct` from a Dockerfile, which is the tool you've used to convert FCCs to Ignition configs. To do this:
<pre>
<pre>
git clone https://github.com/coreos/coreos-assembler
git clone https://github.com/coreos/fcct
cd coreos-assembler
cd fcct
podman build -t cosa .
podman build -t fcct .
</pre>
</pre>
# Try to run the container. If you've built coreos-assembler, you can try `podman run -ti --rm cosa shell`.
# Try running the container, e.g. `podman run -ti --rm fcct --help`.
# If you used `podman`, repeat the steps with `docker` and vice-versa. Note that it might be easier to use a new host since there are [https://docs.fedoraproject.org/en-US/fedora-coreos/faq/#_can_i_run_containers_via_docker_and_podman_at_the_same_time known conflicts between `podman` and `docker`]
# Now, use `docker` to build the container. Note that it might be easier to use a new host since there are [https://docs.fedoraproject.org/en-US/fedora-coreos/faq/#_can_i_run_containers_via_docker_and_podman_at_the_same_time known conflicts between `podman` and `docker`]:
<pre>
git clone https://github.com/coreos/fcct
cd fcct
docker build -t fcct .
</pre>
# Try running the container, e.g. `docker run -ti --rm fcct --help`.


|results=
|results=
Line 19: Line 25:


|optional=
|optional=
# If you've built coreos-assembler and you have nested KVM enabled (or you're running on bare metal), try building Fedora CoreOS with it using the steps provided [https://github.com/coreos/coreos-assembler#create-a-build-working-directory here]. For the `COREOS_ASSEMBLER_CONTAINER`, use the tag you've specified above when building the image, e.g. `cosa`.
# If you're familiar with other containerized software, try building and running them too.
}}
}}


[[Category:CoreOS Test Cases]]
[[Category:CoreOS Test Cases]]

Revision as of 19:02, 5 June 2020

Description

Install Fedora CoreOS and build and run containers.

Setup

  1. Have access to a (or install a new) FCOS instance running the next stream.

How to test

  1. Using podman, build fcct from a Dockerfile, which is the tool you've used to convert FCCs to Ignition configs. To do this:
git clone https://github.com/coreos/fcct
cd fcct
podman build -t fcct .
  1. Try running the container, e.g. podman run -ti --rm fcct --help.
  2. Now, use docker to build the container. Note that it might be easier to use a new host since there are known conflicts between podman and docker:
git clone https://github.com/coreos/fcct
cd fcct
docker build -t fcct .
  1. Try running the container, e.g. docker run -ti --rm fcct --help.

Expected Results

  1. You can build a container using both podman and docker.
  2. You can run a built container using podman and docker.

Optional

  1. If you're familiar with other containerized software, try building and running them too.