# install at https://multipass.run/
multipass launch --name microk8s-flux --mem 2G
multipass shell microk8s-flux
# assume ubuntu with snap installed, if not install it via
apt install snapd
This file contains 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
# get root | |
sudo -s | |
# format nvme | |
mkfs.btrfs /dev/nvme0n1 | |
# create partitions | |
parted /dev/nvme0n1 mklabel gpt | |
parted /dev/nvme0n1 mkpart primary 1MiB 100GiB | |
parted /dev/nvme0n1 mkpart primary 100GiB 100% |
This file contains 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
# Source: https://gist.github.com/vfarcic/77c63cede031951654d5fea5ce0acb43 | |
######################################################################################### | |
# Say Goodbye to Makefile - Use Taskfile to Manage Tasks in CI/CD Pipelines and Locally # | |
######################################################################################### | |
# Additional Info: | |
# - Task: https://taskfile.dev | |
# - Dagger: The Missing Ingredient for Your Disastrous CI/CD Pipeline: https://youtu.be/oosQ3z_9UEM |
This file contains 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 | |
# shellcheck disable=SC2162 | |
# certbot location | |
UNAME=$(uname -s) | |
if [ "$UNAME" = "Darwin" ]; then | |
BREW_PREFIX=$(brew --prefix) | |
PATH="$BREW_PREFIX/bin:/usr/local/bin:$PATH" | |
elif [ "$UNAME" = "Linux" ]; then |
This file contains 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
failure-threshold: info # error|warning|info|style|ignore|none | |
ignored: | |
- DL3006 # explicit tag | |
- DL3008 # pin versions in apt | |
- DL3018 # pin versions in apk | |
- DL3026 # allowed registry | |
trustedRegistries: | |
- docker.io |
This file contains 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
repos.txt |
This file contains 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
KAMAL_REGISTRY_PASSWORD=dckr_pat_xXXxx_x0xXxXx-xX-XXX0xX0x-x | |
RAILS_MASTER_KEY=00x00xxx000xxx000000xx0x000x0x00 | |
POSTGRES_PASSWORD=xXxxx0xXXx0 | |
MEILI_MASTER_KEY=xXxxx0xXXx0 | |
BLAZER_DATABASE_URL=postgres://service:{POSTGRES_PASSWORD}@service-name-postgres:5432/service_production |
This file contains 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 | |
# shellcheck disable=SC2207 | |
base_url="https://github.com/$user_name/$repo_name/releases" | |
pkg_path=$(pwd) | |
distro=$(uname) # Linux / Darwin | |
arch=$(uname -m) # x86_64 / aarch64 / arm64 | |
help() { |