58 lines
1.6 KiB
JSON
58 lines
1.6 KiB
JSON
{
|
|
"source": {
|
|
"lxd": {
|
|
"flow_infra": {
|
|
"container_name": "${var.lxd_container_name}",
|
|
"image": "${var.lxd_base_image}",
|
|
"publish_properties": {
|
|
"description": "LXD image for Flow Infra Dev"
|
|
},
|
|
"virtual_machine": false
|
|
}
|
|
}
|
|
},
|
|
|
|
"build": {
|
|
"source": {
|
|
"lxd.flow_infra": {
|
|
"name": "flow-infra",
|
|
"output_image": "${var.lxd_output_image_name}"
|
|
}
|
|
},
|
|
"provisioner": {
|
|
"shell": {
|
|
"inline": ["apk add bash"]
|
|
}
|
|
},
|
|
"provisioner": {
|
|
"shell": {
|
|
"environment_vars": [
|
|
"FLOW_USERNAME=${var.flow_username}",
|
|
"FLOW_GID=${var.flow_gid}",
|
|
"FLOW_UID=${var.flow_uid}",
|
|
"ROOT_SETUP_DIRECTORY=${var.root_setup_directory}"
|
|
],
|
|
"script": "${path.root}/../../provisioners/shell/setup.sh"
|
|
}
|
|
},
|
|
"provisioner": {
|
|
"file": {
|
|
"sources": [
|
|
"${path.root}/../../files/traefik/Dockerfile",
|
|
"${path.root}/../../files/traefik/dynamic_dashboard.yaml",
|
|
"${path.root}/../../files/traefik/entrypoint.sh",
|
|
"${path.root}/../../files/traefik/traefik.yaml"
|
|
],
|
|
"destination": "${var.root_setup_directory}/template/traefik/"
|
|
},
|
|
"file": {
|
|
"source": "${path.root}/../../files/compose/docker-compose.yaml",
|
|
"destination": "${var.root_setup_directory}/template/compose/"
|
|
},
|
|
"file": {
|
|
"source": "${path.root}/../../files/scripts/bootstrap.sh",
|
|
"destination": "${var.root_setup_directory}/bootstrap.sh"
|
|
}
|
|
}
|
|
}
|
|
}
|