-
Notifications
You must be signed in to change notification settings - Fork 194
ci: Add CentOS setup script. #207
Conversation
.ci/setup_env_centos.sh
Outdated
|
|
||
| # 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be https://.
.ci/setup_env_centos.sh
Outdated
| source "${cidir}/lib.sh" | ||
|
|
||
| # Obtain CentOS version | ||
| centos_version=$(cat /etc/os-release | grep "VERSION_ID" | cut -d '"' -f2) |
There was a problem hiding this comment.
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)
d149b9a to
9a5fbd5
Compare
9a5fbd5 to
e7f8738
Compare
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>
devimc
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
.ci/install_qemu.sh
Outdated
|
|
||
| if [ "$ID" == "centos" ]; then | ||
| qemu_path="/usr/local/bin/qemu-system-$(arch)" | ||
| sudo ln -sf "$qemu_path" /usr/bin/ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
abd8709 to
0a115a9
Compare
|
@chavafg changes applied |
This will enable to setup and run kata-runtime in CentOS.
Fixes #197
Signed-off-by: Gabriela Cervantes gabriela.cervantes.tellez@intel.com