-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding version lock on runc, containerd and docker #654
Conversation
adding version lock on runc and containerd adding version lock on runc and containerd
scripts/install-worker.sh
Outdated
@@ -129,6 +129,10 @@ if [[ "$INSTALL_DOCKER" == "true" ]]; then | |||
# pinning it to `1.0.0-rc92` | |||
sudo yum downgrade -y runc.${MACHINE} 1.0.0-0.1.20200826.gitff819c7.amzn2 |
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.
Let's move the runc version to a packer variable, like docker and containerd: https://github.com/awslabs/amazon-eks-ami/blob/master/eks-worker-al2.json#L17
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.
Makes sense, done
scripts/install-worker.sh
Outdated
@@ -129,6 +129,10 @@ if [[ "$INSTALL_DOCKER" == "true" ]]; then | |||
# pinning it to `1.0.0-rc92` | |||
sudo yum downgrade -y runc.${MACHINE} 1.0.0-0.1.20200826.gitff819c7.amzn2 | |||
|
|||
# install versionlock plugin and lock runc, containerd versions | |||
sudo yum install -y yum-plugin-versionlock | |||
sudo yum versionlock runc-* containerd-* |
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.
Should we also lock the docker version?
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.
Makes sense, done
|
@@ -15,6 +15,7 @@ | |||
"kernel_version": "", | |||
"docker_version": "19.03.13ce-1.amzn2", | |||
"containerd_version": "1.4.1-2.amzn2", | |||
"runc_version": "1.0.0-0.1.20200826.gitff819c7.amzn2", |
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.
please add runc_version
here as well: https://github.com/awslabs/amazon-eks-ami/blob/master/Makefile#L2
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.
Done
Issue #, if available:
#648
Description of changes:
In the above mentioned issue, we downgraded the
runc
version, but did not lock the version. So, it is possible thatrunc
can be updated to latest during patch installs. This PR puts a lock oncontainerd
andrunc
versionsBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Testing