Start own earthly container

This commit is contained in:
Adam Shamblin 2022-11-01 16:57:36 -06:00
parent 43abe7af58
commit ec49bc9b25
No known key found for this signature in database
GPG Key ID: 22E0BC8E6B4D8C8E
3 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,9 @@
#!/usr/bin/env bash
wget https://github.com/earthly/earthly/releases/download/v0.6.28/earthly-linux-amd64 \
-O /usr/local/bin/earthly
chmod +x /usr/local/bin/earthly
/usr/local/bin/earthly bootstrap
docker run -d --restart always \
--privileged \
--name earthly-buildkit \
-p 8372:8372 \
-t -v earthly-tmp:/tmp/earthly:rw \
--env BUILDKIT_TCP_TRANSPORT_ENABLED=true \
earthly/buildkitd:v0.6.28

View File

@ -28,7 +28,7 @@ ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u root \
-i '${self.ipv4_address},' \
--private-key ${var.pvt_key} \
-e "regkey=${var.reg_key} ci_server_url=${var.ci_server_url} runner_name=${var.runner_name}" \
docker-install.yml
docker-install.yaml
EOF
}
}