Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e98f0 commit 767345bCopy full SHA for 767345b
scripts/develop.sh
@@ -214,6 +214,8 @@ fatal() {
214
echo "Initializing docker template..."
215
temp_template_dir="$(mktemp -d)"
216
"${CODER_DEV_SHIM}" templates init --id "${template_name}" "${temp_template_dir}"
217
+ # Run terraform init so we get a terraform.lock.hcl
218
+ pushd "${temp_template_dir}" && terraform init && popd
219
220
DOCKER_HOST="$(docker context inspect --format '{{ .Endpoints.docker.Host }}')"
221
printf 'docker_arch: "%s"\ndocker_host: "%s"\n' "${GOARCH}" "${DOCKER_HOST}" >"${temp_template_dir}/params.yaml"
0 commit comments