perf: reduce dev VM requirements

This commit is contained in:
Khue Doan 2022-02-11 21:33:21 +07:00
parent 48e9e9dbd0
commit e425c363ed
3 changed files with 20 additions and 6 deletions

View File

@ -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 🚧

View File

@ -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
View File

@ -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|