-
Notifications
You must be signed in to change notification settings - Fork 99
TMP: How to Update Knative for vHive
Bora M. Alper edited this page Jun 7, 2021
·
6 revisions
To be incorporated into the docs
folder
This wiki page describes how to make changes to Knative Serving and use the changed version of Knative in vHive.
- Install Knative requirements:
- Install
ko
:wget -qO- https://github.com/google/ko/releases/download/v0.8.3/ko_0.8.3_Linux_x86_64.tar.gz | sudo tar -C /usr/bin/ -xz ko sudo chmod +x /usr/bin/ko
- Install
go
(1.14 or later); already installed on CloudLab. - Install
git
; already installed on CloudLab.
- Install
- Install
docker
:sudo apt install docker.io chown -R $USER:docker ~/.docker # fixes a CloudLab bug? sudo usermod -aG docker $USER
- Logout and login again for changes to take effect.
- Login to Docker Hub account that the Knative images will be pushed to.
docker login
-
Set up your environment for building:
cat << EOF >> ~/.bashrc export GOROOT=$(go env GOROOT) export GOPATH="$HOME/go" export PATH="${PATH}:${GOPATH}/bin" export KO_DOCKER_REPO='docker.io/<DOCKER HUB USERNAME>' EOF
-
<DOCKER HUB USERNAME>
must be the same username that you used to login in the previous step.
-
- Git clone your fork:
git clone --branch=<FEATURE BRANCH> https://github.com/ease-lab/serving cd serving
- Generate new Knative YAMLs (by building the relevant Docker images and uploading them to Docker Hub too):
./hack/generate-yamls.sh . new-yamls.txt
- Copy the generated Knative YAMLs to a well-known location:
mkdir -p ~/new-yamls cp $(cat new-yamls.txt) ~/new-yamls
- Copy the generated Knative YAMLs to your local machine if you have used a remote server---execute the following on your local machine:
# Say, you are at the root of ease-lab/vhive repository... rsync -zr <HOSTNAME>:new-yamls/ configs/knative_yamls/ --progress=info2
- Commit and push/merge your changes to/at both repos!