Created
April 28, 2025 13:12
-
-
Save dims/29b734404b94715373759f25c18e555e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a fresh new Ubuntu 24.04 VM and run the commands below: | |
# Install a bunch of stuff we need | |
apt update && apt -y install gperf sudo htop psutils build-essential pkg-config git wget unzip | |
# Clone what we need | |
git clone https://github.com/kubernetes/kubernetes $HOME/go/src/k8s.io/kubernetes | |
git clone https://github.com/containerd/containerd $HOME/go/src/github.com/containerd/containerd | |
# Latest golang | |
curl -sSL https://golang.org/dl/go1.24.2.linux-amd64.tar.gz | tar -C /usr/local -xzf - | |
export PATH=/usr/local/go/bin:$PATH | |
export PATH=$(go env GOPATH)/bin:$PATH | |
go version | |
# build / install and start containerd | |
cd $HOME/go/src/github.com/containerd/containerd | |
# run the scripts for install/setup | |
script/setup/install-seccomp && \ | |
script/setup/install-runc && \ | |
script/setup/install-cni && \ | |
script/setup/install-protobuf \ | |
&& mkdir -p /go/src/usr/local/bin /go/src/usr/local/include \ | |
&& mv /usr/local/bin/protoc /go/src/usr/local/bin/protoc \ | |
&& mv /usr/local/include/google /go/src/usr/local/include/google | |
make binaries GO_BUILD_FLAGS="-mod=vendor" | |
make install | |
# create and start the containerd service | |
cp $HOME/go/src/github.com/containerd/containerd/containerd.service /etc/systemd/system/containerd.service | |
systemctl daemon-reload | |
systemctl enable containerd.service | |
systemctl start containerd | |
# sanity check | |
ctr version | |
# build k8s and run node e2e tests | |
export PATH=$PATH:/go/src/k8s.io/kubernetes/_output/local/go/bin/ | |
cd $HOME/go/src/k8s.io/kubernetes | |
USER=root make test-e2e-node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
4 failures with this script as of now.