mirror of
https://github.com/khuedoan/homelab.git
synced 2025-03-09 04:09:38 +07:00
perf: reduce dev VM requirements
This commit is contained in:
parent
48e9e9dbd0
commit
e425c363ed
@ -52,8 +52,8 @@ Project status: **Alpha** (see [roadmap](#roadmap) below)
|
||||
- [x] CI/CD platform
|
||||
- [x] Private container registry
|
||||
- [x] Distributed storage
|
||||
- [x] Support multiple environments (dev, stag, prod)
|
||||
- [ ] Monitoring and alerting 🚧
|
||||
- [ ] Support multiple environments (dev, stag, prod) 🚧
|
||||
- [ ] Automated offsite backups 🚧
|
||||
- [ ] Single sign-on 🚧
|
||||
|
||||
|
@ -5,6 +5,22 @@
|
||||
Because this repository ([khuedoan/homelab](https://github.com/khuedoan/homelab)) applies GitOps practices,
|
||||
it's the source of truth for my homelab, so you'll need to folk it to make it yours.
|
||||
|
||||
## Choose the environment
|
||||
|
||||
| Environment | Branch |
|
||||
| ----------- | ------ |
|
||||
| Production | `master` |
|
||||
| Staging | `stag` |
|
||||
| Development | `dev` |
|
||||
|
||||
For example, if you're trying out the dev VM, use the development environment:
|
||||
|
||||
```sh
|
||||
git checkout dev
|
||||
```
|
||||
|
||||
<!-- TODO show complete workflow -->
|
||||
|
||||
## Run the configure script
|
||||
|
||||
Run the following script to configure the homelab:
|
||||
|
8
metal/Vagrantfile
vendored
8
metal/Vagrantfile
vendored
@ -4,11 +4,9 @@ inventory = YAML.load_file(File.join(__dir__, './inventories/dev.yml'))
|
||||
group_vars = YAML.load_file(File.join(__dir__, './group_vars/all.yml'))
|
||||
|
||||
# ANCHOR: vm_specs
|
||||
# TODO This is ridiculous for a local development environment.
|
||||
# After multi-env is supported, optimize it.
|
||||
cpus = 4
|
||||
memory = "10240"
|
||||
disk_size = "256GB"
|
||||
cpus = 2
|
||||
memory = "8192"
|
||||
disk_size = "128GB"
|
||||
# ANCHOR_END: vm_specs
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
|
Loading…
Reference in New Issue
Block a user