From Fedora Project Wiki

Line 5: Line 5:
  
 
|actions=
 
|actions=
# Using `podman`, build `fcct` from a Dockerfile, which is the tool you've used to convert FCCs to Ignition configs. To do this:
+
<ol>
 +
<li>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/fcct
 
git clone https://github.com/coreos/fcct
Line 11: Line 12:
 
podman build -t fcct .
 
podman build -t fcct .
 
</pre>
 
</pre>
# Try running the container, e.g. `podman run -ti --rm fcct --help`.
+
<li> Try running the container, e.g. `podman run -ti --rm fcct --help`.
# 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`]:
+
<li> 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>
 
<pre>
 
git clone https://github.com/coreos/fcct
 
git clone https://github.com/coreos/fcct
Line 18: Line 19:
 
docker build -t fcct .
 
docker build -t fcct .
 
</pre>
 
</pre>
# Try running the container, e.g. `docker run -ti --rm fcct --help`.
+
<li> Try running the container, e.g. `docker run -ti --rm fcct --help`.
 +
</ol>
  
 
|results=
 
|results=

Revision as of 19:07, 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 .
    
  2. Try running the container, e.g. podman run -ti --rm fcct --help.
  3. 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 .
    
  4. 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.