Skip to content

Commit

Permalink
Pre-init go cache to avoid throttling #72
Browse files Browse the repository at this point in the history
  • Loading branch information
blues-man committed Dec 4, 2021
1 parent f7e7f8f commit 798d84a
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 845 deletions.
2 changes: 1 addition & 1 deletion operatorframework/go-operator-memcached/track.yml
Original file line number Diff line number Diff line change
Expand Up @@ -846,4 +846,4 @@ challenges:
path: /root/projects/memcached-operator
difficulty: basic
timelimit: 300
checksum: "8094992266309445031"
checksum: "16445911839075037722"
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ curl -s https://raw.githubusercontent.com/openshift-instruqt/instruqt/master/ope
curl -s https://raw.githubusercontent.com/openshift-instruqt/instruqt/master/operatorframework/go-operator-memcached/assets/memcached_controller.go -o /tmp/memcached_controller.go
curl -s https://raw.githubusercontent.com/openshift-instruqt/instruqt/master/operatorframework/go-operator-memcached/assets/cache_v1alpha1_memcached.yaml -o /tmp/cache_v1alpha1_memcached.yaml

mkdir -p /root/projects/memcached-operator

cd /root/projects/memcached-operator

operator-sdk init --domain example.com --repo github.com/example/memcached-operator

until [ -f /opt/instruqt/bootstrap/host-bootstrap-completed ]; do
echo "Waiting for instruqt bootstrap to complete"
sleep 1
Expand Down
2 changes: 1 addition & 1 deletion operatorframework/go-operator-podset/track.yml
Original file line number Diff line number Diff line change
Expand Up @@ -572,4 +572,4 @@ challenges:
path: /root
difficulty: basic
timelimit: 257
checksum: "2516474737190153459"
checksum: "5870006751519772700"
12 changes: 12 additions & 0 deletions operatorframework/go-operator-podset/track_scripts/setup-container
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ chmod +x /usr/bin/kubectl

curl -s https://raw.githubusercontent.com/openshift-instruqt/instruqt/master/scripts/install_operatorsdk_toolbox.sh -o /tmp/install.sh && bash /tmp/install.sh

mkdir -p /root/projects/podset-operator

cd /root/projects/podset-operator

operator-sdk init --domain=example.com --repo=github.com/redhat/podset-operator

until [ -f /opt/instruqt/bootstrap/host-bootstrap-completed ]; do
echo "Waiting for instruqt bootstrap to complete"
sleep 1
done


This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 798d84a

Please sign in to comment.