mvk/src/content/docs/guides/dev-env.md

54 lines
2 KiB
Markdown
Raw Normal View History

2025-07-16 19:18:00 +01:00
---
title: Local Development Environment
description: A guide to checking a local environment.
---
Run `dev-pre-flight-checks.sh` command line tool with
```bash
curl -L https://codeberg.org/headshed/infctl-cli/raw/branch/main/scripts/dev-pre-flight-checks.sh | bash
```
Alternatively, download https://codeberg.org/headshed/infctl-cli/raw/branch/main/scripts/dev-pre-flight-checks.sh locally, check over what it does, `chmod +x dev-pre-flight-checks.sh` and run `./dev-pre-flight-checks.`
the following executables are checked to be in your `$PATH`:
"infctl" "pwgen" "kubectl" "k3d" "helm" "jq" "docker"
if any of these are missing, a development environment cannot be created.
`infctl` - see [quick start](/guides/quick-start/)
`pwgen`, `jq` are typically available in package managers
To install `pwgen` or `jq`:
**On macOS (using Homebrew):**
```bash
brew install pwgen jq
```
**On Linux (Debian/Ubuntu):**
```bash
sudo apt-get update
sudo apt-get install pwgen jq
```
**On Linux (Fedora):**
```bash
sudo dnf install pwgen jq
```
To download `kubectl`, visit the official Kubernetes documentation: [Install and Set Up kubectl](https://kubernetes.io/docs/tasks/tools/). Follow the instructions for your operating system.
To install `k3d` go to [k3d installation](https://k3d.io/stable/#installation) and follow their guide
To install `helm` got to [helm install](https://helm.sh/docs/intro/install/) and follow their guide
Docker can be installed in a variety of ways but for most Windows and Mac users [docker desktop](https://www.docker.com/products/docker-desktop/) can be an easy option
For Linux users, [docker engine install](https://docs.docker.com/engine/install/) is more often than not the better option.
Which ever path you take to install Docker, any of the above will work but if you are interesting in really getting to know Kubernetes, it is would be really good to go for a Linux based solution as this is typically what Kubernetes is likely to be running on in any production grade environment.