Skip to main content

arcp

Manage development environments with recipes

curl -sL https://get.arcp.sh | sh

Recipes for Linux and macOS

arcp helps you manage your development environment — arcp Recipes help you define, install, and upgrade even the most complex application.

No more copy-and-paste! Use recipes to generate shell scripts for your preferred platform and architecture.

kubectl.yaml
kind: Recipe
apiVersion: v1alpha1
name: kubectl
version: "1.21.0"
platform: ["linux", "darwin"]
arch: ["amd64", "arm64"]
values:
steps:
- platform: ["linux", "darwin"]
script:
- curl -LO https://dl.k8s.io/release/v{{.version}}/bin/{{.platform}}/{{.arch}}/kubectl
- curl -LO https://dl.k8s.io/release/v{{.version}}/bin/{{.platform}}/{{.arch}}/kubectl.sha256
- echo "$(<kubectl.sha256) kubectl" | sha256sum --check
- platform: ["linux"]
script:
- sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
- platform: ["darwin"]
script:
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
- "sudo chown root: /usr/local/bin/kubectl"
arcp recipe get kubectl
#!/usr/bin/env bash
set -euo pipefail
function cleanup { :; }
trap "cleanup" EXIT
# step@0
curl -LO https://dl.k8s.io/release/v1.21.0/bin/linux/amd64/kubectl
curl -LO https://dl.k8s.io/release/v1.21.0/bin/linux/amd64/kubectl.sha256
echo "$(<kubectl.sha256) kubectl" | sha256sum --check
# step@1
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl