mirror of
https://github.com/khuedoan/homelab.git
synced 2025-03-09 20:30:04 +07:00
Simplify prerequisite with tools container
This commit is contained in:
parent
d2472f5fff
commit
d55dc92945
12
README.md
12
README.md
@ -29,10 +29,7 @@
|
||||
For the controller (to run Ansible, stateless PXE server, Terraform...):
|
||||
|
||||
- SSH keys in `~/.ssh/{id_rsa,id_rsa.pub}`
|
||||
- `make`
|
||||
- `python3`
|
||||
- Docker with `host` networking driver (which means [only Docker on Linux hosts](https://docs.docker.com/network/host/))
|
||||
- `terraform` (0.14.x)
|
||||
- `vagrant` (optional, to create a local [test environment](./test))
|
||||
|
||||
For bare metal nodes:
|
||||
@ -48,19 +45,18 @@ For bare metal nodes:
|
||||
|
||||
### Building
|
||||
|
||||
Simply run:
|
||||
Open the tools container:
|
||||
|
||||
```sh
|
||||
make
|
||||
```
|
||||
|
||||
Or we can build each layer individually:
|
||||
Then build each layer:
|
||||
|
||||
```sh
|
||||
make metal
|
||||
make infra
|
||||
# or
|
||||
cd infra
|
||||
make
|
||||
make apps
|
||||
```
|
||||
|
||||
## Acknowledgments
|
||||
|
@ -12,6 +12,7 @@ RUN apk add --no-cache \
|
||||
RUN apk add --no-cache --repository "http://dl-cdn.alpinelinux.org/alpine/edge/testing" \
|
||||
helm \
|
||||
kubectl \
|
||||
lxd \
|
||||
terraform
|
||||
|
||||
WORKDIR /root/src
|
||||
WORKDIR /src
|
||||
|
@ -4,5 +4,6 @@ services:
|
||||
tools:
|
||||
build: .
|
||||
volumes:
|
||||
- ..:/root/src
|
||||
- ..:/src
|
||||
- $HOME:/root
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
Loading…
Reference in New Issue
Block a user