added new gui to KubeInvaders

This commit is contained in:
Eugenio Marzo
2021-05-15 14:13:05 +02:00
parent 8e3164a528
commit 090f56dcd5
165 changed files with 82124 additions and 46 deletions

View File

@@ -1,8 +1,13 @@
#!/bin/sh
if [ ! -z "$K8S_TOKEN" ];then
echo 'Found K8S_TOKEN... using K8S_TOKEN instead of TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)'
export TOKEN=$K8S_TOKEN
else
# Source the service account token from the container directly.
export TOKEN="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
fi
# Source the service account token from the container directly.
export TOKEN="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
# TODO: use a sidecar
redis-server /etc/redis/redis.conf &
sed -i "s/ENDPOINT_PLACEHOLDER/$ENDPOINT/g" /var/www/html/kubeinvaders.js