| garciadeblas | 8d8cd99 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| 15 | |
| garciadeblas | 10944e8 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 16 | pushd $HOME |
| 17 | |
| garciadeblas | 8d8cd99 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 18 | # Install `gnupg` and `gpg` - Typically pre-installed in Ubuntu |
| 19 | sudo apt-get install gnupg gpg |
| 20 | |
| 21 | # Install `sops` |
| 22 | curl -LO https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64 |
| 23 | sudo mv sops-v3.8.1.linux.amd64 /usr/local/bin/sops |
| 24 | sudo chmod +x /usr/local/bin/sops |
| 25 | |
| 26 | # Install `envsubst` |
| 27 | sudo apt-get install gettext-base |
| 28 | |
| 29 | # Install `age` |
| garciadeblas | 10944e8 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 30 | curl -LO https://github.com/FiloSottile/age/releases/download/v1.1.0/age-v1.1.0-linux-amd64.tar.gz |
| 31 | tar xvfz age-v1.1.0-linux-amd64.tar.gz |
| 32 | sudo mv age/age age/age-keygen /usr/local/bin/ |
| 33 | sudo chmod +x /usr/local/bin/age* |
| 34 | rm -rf age age-v1.1.0-linux-amd64.tar.gz |
| garciadeblas | 8d8cd99 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 35 | |
| 36 | # (Only for Gitea) Install `apg` |
| 37 | sudo apt-get install apg |
| 38 | |
| 39 | # # (Only for Minio) `kubectl minio` plugin and Minio Client |
| garciadeblas | 10944e8 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 40 | if [ -n "${INSTALL_MINIO}" ]; then |
| 41 | curl https://github.com/minio/operator/releases/download/v5.0.12/kubectl-minio_5.0.12_linux_amd64 -Lo kubectl-minio |
| 42 | curl https://dl.min.io/client/mc/release/linux-amd64/mc -o minioc |
| 43 | chmod +x kubectl-minio minioc |
| 44 | sudo mv kubectl-minio minioc /usr/local/bin/ |
| 45 | # (Only for HTTPS Ingress for Minio tenant) Install `openssl` |
| 46 | sudo apt-get install openssl |
| 47 | fi |
| garciadeblas | 8d8cd99 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 48 | |
| 49 | # Flux client |
| 50 | curl -s https://fluxcd.io/install.sh | sudo bash |
| 51 | # Autocompletion |
| 52 | . <(flux completion bash) |
| garciadeblas | 10944e8 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 53 | |
| garciadeblas | 81689a5 | 2024-09-30 22:52:54 +0200 | [diff] [blame] | 54 | # Argo client |
| 55 | ARGO_VERSION="v3.5.7" |
| 56 | curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-amd64.gz |
| 57 | gunzip argo-linux-amd64.gz |
| 58 | chmod +x argo-linux-amd64 |
| 59 | sudo mv ./argo-linux-amd64 /usr/local/bin/argo |
| 60 | |
| garciadeblas | 10944e8 | 2024-05-21 16:04:14 +0200 | [diff] [blame] | 61 | # Kustomize |
| 62 | KUSTOMIZE_VERSION="5.4.3" |
| 63 | curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s -- ${KUSTOMIZE_VERSION} |
| 64 | sudo install -o root -g root -m 0755 kustomize /usr/local/bin/kustomize |
| 65 | rm kustomize |
| 66 | |
| 67 | # yq |
| 68 | VERSION=v4.33.3 |
| 69 | BINARY=yq_linux_amd64 |
| 70 | curl -L https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -o yq |
| 71 | sudo mv yq /usr/local/bin/yq |
| 72 | sudo chmod +x /usr/local/bin/yq |
| 73 | |
| 74 | popd |