Julio Faerman https://faermanj.com/invited
Practice!
Julio Faerman https://faermanj.com/invited
Practice!
#!/bin/bash | |
# sudo -s | |
# This script installs WordPress on an EC2 Amazon Linux 2 instance. | |
yum update -y | |
# Install Apache, MySQL, PHP, and other required packages | |
yum install -y httpd php mariadb1011 |
curl -fsSL https://get.jetpack.io/devbox | bash -s -- --force
# System Check / Fixes | |
chmod 400 /home/vscode/.ssh/id_rsa | |
# Environment Settings (.envrc ) | |
export KUBERNETES_VERSION="v1.30.8" | |
export CLUSTER_NAME="capi-test" | |
export USE_EXISTING_CLUSTER="true" | |
# Start devbox | |
devbox shell |
# Local settings | |
LOCAL_OS=$(uname -s | tr '[:upper:]' '[:lower:]') | |
LOCAL_ARCH=$(uname -m) | |
# Map architecture from uname to Cluster API release architecture names | |
if [ "$LOCAL_ARCH" == "x86_64" ]; then | |
LOCAL_ARCH="amd64" | |
elif [ "$LOCAL_ARCH" == "aarch64" ]; then | |
LOCAL_ARCH="arm64" | |
fi |
Here's a review of the current quickstart and some suggestions for improvement.
Using my devspaces for environment:
https://github.com/faermanj/cluster-api-provider-aws/tree/add-dedicated-hosts
#!/usr/bin/env bash | |
set -ex | |
# This script is used by the bastion host to stop itself | |
# | |
TOKEN=$(curl -s \ | |
-X PUT "http://169.254.169.254/latest/api/token" \ | |
-H "X-aws-ec2-metadata-token-ttl-seconds: 21600") | |
ID=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" \ |
Big Sur v11.5.2
v1.60.0
v0.194.0
v0.6.3
# docker build --no-cache --progress=plain -f .gitpod.Dockerfile . | |
FROM gitpod/workspace-full | |
# System | |
RUN bash -c "sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3EFE0E0A2F2F60AA" | |
RUN bash -c "echo 'deb http://ppa.launchpad.net/tektoncd/cli/ubuntu jammy main'|sudo tee /etc/apt/sources.list.d/tektoncd-ubuntu-cli.list" | |
RUN bash -c "sudo apt-get update" | |
RUN bash -c "sudo install-packages direnv gettext mysql-client gnupg" | |
RUN bash -c "sudo pip install --upgrade pip" |