mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +00:00
osbuilder: Remove centos rootfs-builder
As the centos 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: #2140 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
0917addea7
commit
06fae29f49
@ -9,7 +9,7 @@ ROOTFS_BUILDER := $(MK_DIR)/rootfs-builder/rootfs.sh
|
||||
INITRD_BUILDER := $(MK_DIR)/initrd-builder/initrd_builder.sh
|
||||
IMAGE_BUILDER := $(MK_DIR)/image-builder/image_builder.sh
|
||||
|
||||
DISTRO ?= centos
|
||||
DISTRO ?= ubuntu
|
||||
BUILD_METHOD := distro
|
||||
BUILD_METHOD_LIST := distro dracut
|
||||
AGENT_INIT ?= no
|
||||
|
@ -80,8 +80,8 @@ filesystem components to generate an initrd.
|
||||
3. When generating an image, the initrd is extracted to obtain the base rootfs for
|
||||
the image.
|
||||
|
||||
CentOS is the default distro for building the rootfs, to use a different one, you can set `DISTRO=<your_distro>`.
|
||||
For example `make USE_DOCKER=true DISTRO=ubuntu rootfs` will make Ubuntu rootfs using Docker.
|
||||
Ubuntu is the default distro for building the rootfs, to use a different one, you can set `DISTRO=alpine|clearlinux|debian|ubuntu`.
|
||||
For example `make USE_DOCKER=true DISTRO=alpine rootfs` will make an Alpine rootfs using Docker.
|
||||
|
||||
### Rootfs creation
|
||||
|
||||
@ -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 |CentOS |Clear Linux |Debian/Ubuntu |Fedora |openSUSE |
|
||||
|-- |-- |-- |-- |-- |-- |-- |
|
||||
|**ARM64** |:heavy_check_mark:|:heavy_check_mark:| | |:heavy_check_mark:|:heavy_check_mark:|
|
||||
|**PPC64le**|:heavy_check_mark:|: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:|:heavy_check_mark:|
|
||||
| |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:|
|
||||
|
@ -8,7 +8,6 @@ To properly load the driver modules, systemd init must be used. It is not adequa
|
||||
to use the agent as the init. Because of this, alpine is not a valid base OS image
|
||||
to use. The following rootfs OS's have been tested with this Dockerfile.
|
||||
|
||||
* CentOS
|
||||
* Clear Linux
|
||||
* Fedora
|
||||
* SUSE
|
||||
|
@ -1,40 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2018 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
ARG IMAGE_REGISTRY=registry.centos.org
|
||||
FROM ${IMAGE_REGISTRY}/centos:@OS_VERSION@
|
||||
|
||||
@SET_PROXY@
|
||||
|
||||
RUN yum -y update && yum 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 \
|
||||
m4 \
|
||||
make \
|
||||
sed \
|
||||
tar \
|
||||
vim \
|
||||
which && \
|
||||
yum clean all
|
||||
|
||||
# This will install the proper packages to build Kata components
|
||||
@INSTALL_MUSL@
|
||||
@INSTALL_RUST@
|
@ -1,38 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2018 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
OS_NAME="Centos"
|
||||
|
||||
OS_VERSION=${OS_VERSION:-7}
|
||||
|
||||
LOG_FILE="/var/log/yum-centos.log"
|
||||
|
||||
MIRROR_LIST="http://mirrorlist.centos.org/?release=${OS_VERSION}&arch=${ARCH}&repo=os&container=container"
|
||||
|
||||
# Aditional Repos
|
||||
CENTOS_UPDATES_MIRROR_LIST="http://mirrorlist.centos.org/?release=${OS_VERSION}&arch=${ARCH}&repo=updates&container=container"
|
||||
|
||||
CENTOS_EXTRAS_MIRROR_LIST="http://mirrorlist.centos.org/?release=${OS_VERSION}&arch=${ARCH}&repo=extras&container=container"
|
||||
|
||||
CENTOS_PLUS_MIRROR_LIST="http://mirrorlist.centos.org/?release=${OS_VERSION}&arch=${ARCH}&repo=centosplus&container=container"
|
||||
|
||||
GPG_KEY_URL="https://www.centos.org/keys/RPM-GPG-KEY-CentOS-7"
|
||||
|
||||
GPG_KEY_FILE="RPM-GPG-KEY-CentOS-7"
|
||||
|
||||
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
|
||||
# List of zero or more architectures to exclude from build,
|
||||
# as reported by `uname -m`
|
||||
ARCH_EXCLUDE_LIST=()
|
||||
|
||||
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true
|
@ -1,18 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2018 ARM Limited
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Base Repos
|
||||
BASE_URL="http://mirror.centos.org/altarch/${OS_VERSION}/os/${ARCH}/"
|
||||
|
||||
# Additional Repos
|
||||
CENTOS_UPDATES_URL="http://mirror.centos.org/altarch/${OS_VERSION}/updates/${ARCH}/"
|
||||
|
||||
CENTOS_EXTRAS_URL="http://mirror.centos.org/altarch/${OS_VERSION}/extras/${ARCH}/"
|
||||
|
||||
CENTOS_PLUS_URL="http://mirror.centos.org/altarch/${OS_VERSION}/centosplus/${ARCH}/"
|
||||
|
||||
GPG_KEY_ARCH_URL="http://mirror.centos.org/altarch/7/os/aarch64/RPM-GPG-KEY-CentOS-7"
|
||||
|
||||
GPG_KEY_ARCH_FILE="RPM-GPG-KEY-CentOS-7-aarch64"
|
@ -1,18 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2018 IBM
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Base Repos
|
||||
BASE_URL="http://mirror.centos.org/altarch/${OS_VERSION}/os/${ARCH}/"
|
||||
|
||||
# Additional Repos
|
||||
CENTOS_UPDATES_URL="http://mirror.centos.org/altarch/${OS_VERSION}/updates/${ARCH}/"
|
||||
|
||||
CENTOS_EXTRAS_URL="http://mirror.centos.org/altarch/${OS_VERSION}/extras/${ARCH}/"
|
||||
|
||||
CENTOS_PLUS_URL="http://mirror.centos.org/altarch/${OS_VERSION}/centosplus/${ARCH}/"
|
||||
|
||||
GPG_KEY_ARCH_URL="https://raw.githubusercontent.com/CentOS/sig-core-AltArch/master/centos-release-repo/centos-release-7/ppc/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le"
|
||||
|
||||
GPG_KEY_ARCH_FILE="RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le"
|
@ -120,7 +120,7 @@ assets:
|
||||
name: "ubuntu"
|
||||
version: "latest"
|
||||
ppc64le:
|
||||
name: "centos"
|
||||
name: "ubuntu"
|
||||
version: "latest"
|
||||
s390x:
|
||||
name: "ubuntu"
|
||||
|
Loading…
Reference in New Issue
Block a user