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/bash | |
| # CAPV Bootstrapping to deploy a management-cluster and a single workload cluster (with any number of workers) with Calico. | |
| # This script has been tested on Ubuntu 18.04 with Cluster API 0.3, kind 0.7, and base images of Ubuntu and Photon 1.17.3. | |
| # This assumes there are DHCP addresses available for the clusters being deployed in the vSphere environment. Static IPs are not supported with this quickstart. | |
| # WE NEED A GITHUB TOKEN!! THIS BUG IS BEING WORKED ON. Get yours at https://github.com/settings/tokens | |
| export GITHUB_TOKEN=<YOUR TOKEN> | |
| # An SSH Public Key is Needed. |
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
| RUN apk --no-cache add \ | |
| wget \ | |
| ca-certificates \ | |
| libstdc++ | |
| # Get and install glibc for alpine | |
| ARG APK_GLIBC_VERSION=2.29-r0 | |
| ARG APK_GLIBC_FILE="glibc-${APK_GLIBC_VERSION}.apk" | |
| ARG APK_GLIBC_BIN_FILE="glibc-bin-${APK_GLIBC_VERSION}.apk" | |
| ARG APK_GLIBC_BASE_URL="https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${APK_GLIBC_VERSION}" | |
| RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \ |