2022-07-06 12:33:35 +07:00
|
|
|
# Development environment
|
2022-04-04 03:19:32 +07:00
|
|
|
|
|
|
|
## Caveats compare to production environment
|
|
|
|
|
|
|
|
The development cluster doesn't have the following features:
|
|
|
|
|
|
|
|
- There is no valid domain name, hence no SSL certificates (some services require valid SSL certificates)
|
|
|
|
- Only accessible on the host machine
|
|
|
|
- No backup
|
|
|
|
<!-- TODO more caveats here -->
|
|
|
|
|
|
|
|
Please keep in mind that the development cluster may be unstable and things may break (it's for development after all).
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
Host machine:
|
|
|
|
|
2022-05-14 16:46:24 +07:00
|
|
|
- OS: Linux (Windows and macOS will not work due to networking limitations, you can use a Linux VM)
|
2022-04-04 03:19:32 +07:00
|
|
|
- Recommended hardware specifications:
|
2022-07-06 12:33:35 +07:00
|
|
|
- CPU: 4 cores
|
|
|
|
- RAM: 16 GiB
|
2022-04-04 03:19:32 +07:00
|
|
|
|
|
|
|
Install the following packages:
|
|
|
|
|
|
|
|
- `docker`
|
|
|
|
- `make`
|
|
|
|
|
2022-07-06 12:33:35 +07:00
|
|
|
Clone the repository and checkout the development branch:
|
2022-04-04 03:19:32 +07:00
|
|
|
|
|
|
|
```sh
|
|
|
|
git clone https://github.com/khuedoan/homelab
|
|
|
|
git checkout dev
|
|
|
|
```
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
Open the tools container:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
make tools
|
|
|
|
```
|
|
|
|
|
|
|
|
Build a development cluster and bootstrap it:
|
|
|
|
|
|
|
|
```
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
Look for the dashboard URL in the command output.
|
|
|
|
|
|
|
|
## Clean up
|
|
|
|
|
|
|
|
Delete the cluster:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
k3d cluster delete homelab-dev
|
|
|
|
```
|