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

Do not load the docker images in kind #13

Merged
merged 2 commits into from
Aug 14, 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
23 changes: 14 additions & 9 deletions run_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,18 @@ printf "%b Starting Kind cluster...\n" ${UNICORN_EMOJI}
--config "${demo_dir}/demo_cluster_conf.yaml" \
--name diracx-demo

printf "%b Loading images from docker to Kind...\n" ${UNICORN_EMOJI}
declare -a image_names
image_names+=("registry.k8s.io/ingress-nginx/controller:v1.8.0")
image_names+=("ghcr.io/diracgrid/diracx/server:latest")
image_names+=("ghcr.io/dexidp/dex:v2.36.0")
for image_name in "${image_names[@]}"; do
docker pull "${image_name}"
"${demo_dir}/kind" --name diracx-demo load docker-image "${image_name}"
done
# Uncomment that to work fully offline
# We do not keep it because it increases the start time by 2mn
#
# printf "%b Loading images from docker to Kind...\n" ${UNICORN_EMOJI}
# declare -a image_names
# image_names+=("registry.k8s.io/ingress-nginx/controller:v1.8.0")
# image_names+=("ghcr.io/diracgrid/diracx/server:latest")
# image_names+=("ghcr.io/dexidp/dex:v2.36.0")
# for image_name in "${image_names[@]}"; do
# docker pull "${image_name}"
# "${demo_dir}/kind" --name diracx-demo load docker-image "${image_name}"
# done

printf "%b Creating an ingress...\n" ${UNICORN_EMOJI}
"${demo_dir}/kubectl" apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
Expand Down Expand Up @@ -117,6 +120,8 @@ echo "export KUBECONFIG=${KUBECONFIG}"
echo "export PATH=${PATH}:${demo_dir}"
echo ""
printf "\U2139 \UFE0F You can access swagger at http://%s:8000/docs\n" "${machine_hostname}"
echo "To login, use the OAuth Authroization Code flow, and enter the following credentials"
echo "in the DEX web interface"
echo "Username: [email protected]"
echo "Password: password"
echo ""
Expand Down