setup docker build host

This commit is contained in:
Gregory Burd 2023-11-27 09:48:04 -05:00
parent 3437d38091
commit b2562e67c8
2 changed files with 17 additions and 9 deletions

View file

@ -5,9 +5,8 @@ This deploys a Docker Daemon running on Fly.io which you can used to offload bui
## Installation ## Installation
1. Clone this repository 1. Clone this repository
1. `fly launch`, follow the prompts 1. `fly launch --no-deploy`, follow the prompts
1. Select `n` when it asks if you want to deploy 1. Create a volume in a region of your choice: `fly volumes create data --size 50 --region bos`
1. Create a volume in a region of your choice: `fly volumes create data --size 50 --region ord`
1. Deploy 1. Deploy
## Get Connected ## Get Connected
@ -17,7 +16,7 @@ This deploys a Docker Daemon running on Fly.io which you can used to offload bui
1. `fly ips private` to get the IP of your Daemon 1. `fly ips private` to get the IP of your Daemon
1. Set the `DOCKER_HOST` env variable using that IP: 1. Set the `DOCKER_HOST` env variable using that IP:
``` ```
export DOCKER_HOST=tcp://[fdaa:0:5d2:a7b:81:0:26d4:2]:2375 export DOCKER_HOST=tcp://[fdaa:1:c1ea:a7b:1ed:2ce6:bb1e:2]:2375
``` ```
# Final Step # Final Step

View file

@ -1,13 +1,22 @@
app = "burd-infra-docker-machine" # fly.toml app configuration file generated for burd-infra-docker-machine on 2023-11-22T14:28:06-05:00
kill_signal = "SIGINT" #
kill_timeout = 5 # See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
[mounts] app = "burd-infra-docker-machine"
destination = "/data" primary_region = "bos"
kill_signal = "SIGINT"
kill_timeout = "5s"
[build]
[[mounts]]
source = "docker_data" source = "docker_data"
destination = "/data"
[[services]] [[services]]
protocol = "tcp" protocol = "tcp"
internal_port = 2375 internal_port = 2375
[[services.ports]] [[services.ports]]
port = 2375 port = 2375