Skip to content
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

ci, build: use the correct dockerfile image #135

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion hack/e2e-kind-cluster-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ OCI_BIN=${OCI_BIN:-docker}
IMG_REGISTRY=${IMAGE_REGISTRY:-localhost:5000/k8snetworkplumbingwg}
IMG_TAG="latest"

start_registry_container() {
pushd multus-cni
trap "popd" RETURN SIGINT
"$OCI_BIN" run -d --restart=always -p "5000:5000" --name "kind-registry" registry:2
"$OCI_BIN" build -t localhost:5000/multus:e2e -f images/Dockerfile.thick .
"$OCI_BIN" push localhost:5000/multus:e2e
}

setup_cluster() {
git clone https://github.com/k8snetworkplumbingwg/multus-cni/
pushd multus-cni/e2e
trap "popd" RETURN SIGINT
./get_tools.sh
Expand All @@ -27,6 +34,8 @@ cleanup() {
}

trap "cleanup" EXIT
git clone https://github.com/k8snetworkplumbingwg/multus-cni/
start_registry_container
setup_cluster
push_local_image
kubectl apply -f manifests/dynamic-networks-controller.yaml
Expand Down