This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
HEADSCALE_VERSION=${HEADSCALE_VERSION:-0.26.0} | |
if [ ! -d "/etc/headscale" ]; then | |
mkdir /etc/headscale | |
fi | |
if [ ! -d "/var/lib/headscale/" ]; then | |
mkdir /var/lib/headscale |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION=${VERSION:-1.32.3} | |
INSTALL_PATH=${INSTALL_PATH:-/var/lib/rancher/credentialprovider} # default k3s path | |
GOARCH=amd64 | |
machine_arch=$(uname -m) | |
if [[ "$machine_arch" == "aarch64" || "$machine_arch" == "arm64" ]]; then | |
GOARCH=arm64 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SECRET=${1:-atlas-api-main-secret} | |
NAMESPACE=${2:-default} | |
CLONE_DB_NAME=${3:-atlas-dev} | |
JOB_NAME=${JOB_NAME:-"clone-db-001"} | |
kubectl delete job $JOB_NAME --namespace $NAMESPACE --ignore-not-found |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACR_NAME=${ACR_NAME:-webonyxregistrysouthcentralus} | |
AKS_NAME=${AKS_NAME:-dev-api-southcentralus-aks} | |
RG=${RG:-dev-api-southcentralus-rg} | |
# install `az` cli | |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | |
# Login by system assigned identity | |
az login --identity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: minio | |
# Required-Start: $network $remote_fs | |
# Required-Stop: $network $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start minio server daemon | |
### END INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
traefik: | |
image: traefik:1.4 | |
networks: | |
- web | |
restart: unless-stopped | |
ports: | |
- "80:80" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CONTAINER=${1:-container-name} | |
TIMEOUT=${2:-30} | |
until docker ps | grep $CONTAINER >/dev/null; do | |
echo "Waiting for container is up...$TIMEOUT" | |
TIMEOUT=`expr $TIMEOUT - 1` | |
if [ $TIMEOUT -le 0 ]; then |