osbuilder: Remove fedora rootfs-builder

As the fedora rootfs is not tested in our CI, we can't guarantee it
actually works as expected.

Whenever we have someone willing to maintain the rootfs we can have it
added back, and also add a CI job to test it altogether, avoiding then
any possible regression.

Fixes: #2143

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2022-01-11 09:49:39 +01:00
parent 06fae29f49
commit 85dd587382
6 changed files with 10 additions and 87 deletions

View File

@ -209,9 +209,9 @@ of the the osbuilder distributions.
> Note: this table is not relevant for the dracut build method, since it supports
any Linux distribution and architecture where dracut is available.
| |Alpine |Clear Linux |Debian/Ubuntu |Fedora |openSUSE |
|-- |-- |-- |-- |-- |-- |
|**ARM64** |:heavy_check_mark:| | |:heavy_check_mark:|:heavy_check_mark:|
|**PPC64le**|:heavy_check_mark:| |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|**s390x** | | |:heavy_check_mark:|:heavy_check_mark:| |
|**x86_64** |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
| |Alpine |Clear Linux |Debian/Ubuntu |openSUSE |
|-- |-- |-- |-- |-- |
|**ARM64** |:heavy_check_mark:| | |:heavy_check_mark:|
|**PPC64le**|:heavy_check_mark:| |:heavy_check_mark:|:heavy_check_mark:|
|**s390x** | | |:heavy_check_mark:| |
|**x86_64** |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|

View File

@ -9,7 +9,6 @@ to use the agent as the init. Because of this, alpine is not a valid base OS ima
to use. The following rootfs OS's have been tested with this Dockerfile.
* Clear Linux
* Fedora
* SUSE
* Ubuntu

View File

@ -99,10 +99,10 @@ must be met:
Example:
```
$ export USE_DOCKER=true
$ # build guest O/S rootfs based on fedora
$ ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora
$ # build guest O/S rootfs based on debian
$ ./rootfs-builder/rootfs.sh -r "${PWD}/debian_rootfs" debian
$ # build image based rootfs created above
$ ./image-builder/image_builder.sh "${PWD}/fedora_rootfs"
$ ./image-builder/image_builder.sh "${PWD}/debian_rootfs"
```
## Adding support for a new guest OS
@ -180,7 +180,7 @@ To add additional packages, use one of the following methods:
Example:
```
$ EXTRA_PKGS="vim emacs" ./rootfs-builder/rootfs.sh -r ${PWD}/myrootfs fedora
$ EXTRA_PKGS="vim emacs" ./rootfs-builder/rootfs.sh -r ${PWD}/myrootfs debian
```
- Modify the variable `PACKAGES` in `rootfs-builder/<distro>/config.sh`.

View File

@ -1,43 +0,0 @@
#
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
ARG IMAGE_REGISTRY=registry.fedoraproject.org
FROM ${IMAGE_REGISTRY}/fedora:@OS_VERSION@
@SET_PROXY@
RUN dnf -y update && dnf install -y \
autoconf \
automake \
binutils \
chrony \
coreutils \
curl \
gcc \
gcc-c++ \
git \
glibc-common \
glibc-devel \
glibc-headers \
glibc-static \
glibc-utils \
libseccomp \
libseccomp-devel \
libstdc++-devel \
libstdc++-static \
protobuf-compiler \
m4 \
make \
pkgconfig \
redhat-release \
sed \
systemd \
tar \
vim \
which && \
dnf clean all
# This will install the proper packages to build Kata components
@INSTALL_MUSL@
@INSTALL_RUST@

View File

@ -1,23 +0,0 @@
#
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
OS_NAME="Fedora"
OS_VERSION=${OS_VERSION:-30}
MIRROR_LIST="https://mirrors.fedoraproject.org/metalink?repo=fedora-${OS_VERSION}&arch=\$basearch"
PACKAGES="coreutils chrony"
#Optional packages:
# systemd: An init system that will start kata-agent if kata-agent
# itself is not configured as init process.
[ "$AGENT_INIT" = "no" ] && PACKAGES+=" systemd" || true
# Init process must be one of {systemd,kata-agent}
INIT_PROCESS=systemd
ARCH_EXCLUDE_LIST=()
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true

View File

@ -1,10 +0,0 @@
#
# Copyright (c) 2019 ARM Limited
#
# SPDX-License-Identifier: Apache-2.0
# image busybox will fail on fedora 30 rootfs image
# see https://github.com/kata-containers/osbuilder/issues/334 for detailed info
OS_VERSION="29"
MIRROR_LIST="https://mirrors.fedoraproject.org/metalink?repo=fedora-${OS_VERSION}&arch=\$basearch"