Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Conversation

@GabyCT
Copy link
Contributor

@GabyCT GabyCT commented Apr 4, 2018

This will enable to setup and run kata-runtime in CentOS.

Fixes #197

Signed-off-by: Gabriela Cervantes gabriela.cervantes.tellez@intel.com

@amshinde amshinde added the review label Apr 4, 2018
@GabyCT GabyCT added wip and removed review labels Apr 4, 2018

# Enable EPEL repository on CentOS
sudo -E yum install -y wget rpm
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-${centos_version}.noarch.rpm

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be https://.

source "${cidir}/lib.sh"

# Obtain CentOS version
centos_version=$(cat /etc/os-release | grep "VERSION_ID" | cut -d '"' -f2)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be simplified to:

centos_version=$(grep VERSION_ID /etc/os-release | cut -d '"' -f2)

@GabyCT GabyCT force-pushed the topic/addsetupcentos branch 5 times, most recently from d149b9a to 9a5fbd5 Compare April 5, 2018 20:44
@GabyCT GabyCT removed the wip label Apr 5, 2018
@GabyCT GabyCT force-pushed the topic/addsetupcentos branch from 9a5fbd5 to e7f8738 Compare April 5, 2018 21:37
This will enable to setup and run kata-runtime in CentOS.

Fixes kata-containers#197

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
Copy link

@devimc devimc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

.ci/lib.sh Outdated
go get -d -u -v "$runtime_repo" || true
[ ! -f "$versions_file" ] && { echo >&2 "ERROR: cannot find $versions_file"; exit 1; }
yq read "$versions_file" "$dependency"
if [ "$ID" == "ubuntu" ] || [ "$ID" == "fedora" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you add this condition, centos will not be able to read the version.yaml file and we would not be able to get the versions we need.


if [ "$ID" == "centos" ]; then
qemu_path="/usr/local/bin/qemu-system-$(arch)"
sudo ln -sf "$qemu_path" /usr/bin/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not needed anymore as we are already creating the symlink above. See L40.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chavafg centos does not retrieve a value with $(command -v qemu-system-$(arch))

@GabyCT GabyCT force-pushed the topic/addsetupcentos branch 2 times, most recently from abd8709 to 0a115a9 Compare April 6, 2018 15:35
@GabyCT
Copy link
Contributor Author

GabyCT commented Apr 6, 2018

@chavafg changes applied

@chavafg
Copy link
Contributor

chavafg commented Apr 6, 2018

lgtm

Approved with PullApprove

@chavafg chavafg merged commit a49cbb9 into kata-containers:master Apr 6, 2018
@GabyCT GabyCT deleted the topic/addsetupcentos branch July 29, 2021 21:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants