mirror of
https://github.com/Luzifer/hetzner-alpine-k8s.git
synced 2024-11-08 14:20:01 +00:00
Compare commits
2 commits
2c523134e0
...
993b866e60
Author | SHA1 | Date | |
---|---|---|---|
993b866e60 | |||
fefa09c86e |
4 changed files with 7 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ config.json
|
||||||
envrun_*
|
envrun_*
|
||||||
packer_*
|
packer_*
|
||||||
yq_*
|
yq_*
|
||||||
|
LICENSE.txt
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -1,6 +1,6 @@
|
||||||
ENVRUN_VERSION := 0.7.1
|
ENVRUN_VERSION := 0.7.3
|
||||||
PACKER_VERSION := 1.10.2
|
PACKER_VERSION := 1.11.2
|
||||||
YQ_VERSION := 4.31.2
|
YQ_VERSION := 4.44.3
|
||||||
|
|
||||||
ENVRUN := ./envrun_$(ENVRUN_VERSION)
|
ENVRUN := ./envrun_$(ENVRUN_VERSION)
|
||||||
PACKER := ./packer_$(PACKER_VERSION)
|
PACKER := ./packer_$(PACKER_VERSION)
|
||||||
|
@ -8,10 +8,8 @@ YQ := ./yq_$(YQ_VERSION)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
config.json: $(YQ)
|
build/%.yaml: $(ENVRUN) $(PACKER) $(YQ)
|
||||||
$(YQ) -ojson . config.yaml | jq -S . >config.json
|
$(YQ) -ojson . $*.yaml | jq -S . >config.json
|
||||||
|
|
||||||
create-snapshot: config.json $(ENVRUN) $(PACKER)
|
|
||||||
$(PACKER) init alpine.pkr.hcl
|
$(PACKER) init alpine.pkr.hcl
|
||||||
$(ENVRUN) -- $(PACKER) build -var-file=config.json alpine.pkr.hcl
|
$(ENVRUN) -- $(PACKER) build -var-file=config.json alpine.pkr.hcl
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,4 @@ It contains a modified version of the packer / ansible setup to create a snapsho
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
- Create an `.env` file containing an `HCLOUD_TOKEN=someimportanttoken`
|
- Create an `.env` file containing an `HCLOUD_TOKEN=someimportanttoken`
|
||||||
- Execute `make create-snapshot`
|
- Execute `make build/<your YAML config, i.e. config.yaml>`
|
||||||
|
|
Loading…
Reference in a new issue