first functional commit
This commit is contained in:
6
localImages/Dockerfile
Normal file
6
localImages/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM alpine:3.16
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache terraform python3 libvirt-qemu qemu xorriso ansible gettext
|
||||
|
||||
COPY init.sh /
|
||||
14
localImages/init.sh
Executable file
14
localImages/init.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /mnt || exit 1
|
||||
|
||||
envsubst < templates/site.temp > site.yml
|
||||
envsubst < templates/vars.temp > vars.tf
|
||||
|
||||
terraform init
|
||||
|
||||
terraform destroy -auto-approve
|
||||
|
||||
terraform apply -auto-approve
|
||||
|
||||
rm site.yml
|
||||
Reference in New Issue
Block a user