From Fedora Project Wiki

Revision as of 14:43, 26 April 2021 by Sohank2602 (talk | contribs) (Since `fcct` has recently been renamed to `butane` so changing the reference in this test case)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Run the following commands on the Fedora CoreOS machine:

  1. Using rootless podman, build butane 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/butane /tmp/butane
    cd /tmp/butane
    podman build -t rootless-test-butane .
    
  2. Try running the container, e.g.:
    podman run -ti --rm rootless-test-butane --help
  3. Now try to build the same container, using privileged podman:
    cd /tmp/butane
    sudo podman build -t privileged-test-butane .
    
  4. Try running the container, e.g.:
    sudo podman run -ti --rm privileged-test-butane --help
  5. Now, use privileged docker to build the container. Note that this should be performed on a different fresh Fedora CoreOS machine since there are known conflicts between podman and docker:
    git clone https://github.com/coreos/butane /tmp/butane
    cd /tmp/butane
    sudo docker build -t docker-butane .
    
  6. Try running the container, e.g.:
    sudo docker run -ti --rm docker-butane --help

Expected Results

  1. You can build a container using podman in rootless mode.
  2. You can run a built container using podman in rootless mode.
  3. You can build a container using podman in privileged mode.
  4. You can run a built container using podman in privileged mode.
  5. You can build a container using docker in privileged mode.
  6. You can run a built container using docker in privileged mode.

Optional

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