You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
echo "Created Docker network \`${data.coder_parameter.docker_network_name.value}\`, you can use it with .coder/docker-compose.yml as a external network!"
129
137
fi
130
138
131
-
# if ${var.workspace_dir}/.coder exists, then we will run the pre-init scripts
139
+
# if ${data.coder_parameter.workspace.value}/.coder exists, then we will run the pre-init scripts
132
140
# and then the Docker Compose project (if any).
133
-
if [ -d "${var.workspace_dir}/.coder" ]; then
141
+
if [ -d "${data.coder_parameter.workspace.value}/.coder" ]; then
134
142
# Run any pre-init scripts in .coder/scripts/pre-init
135
-
if [ -d "${var.workspace_dir}/.coder/scripts/pre-init" ]; then
136
-
files=$(find "${var.workspace_dir}/.coder/scripts/pre-init" -maxdepth 1 -type f -executable -name '*.sh')
143
+
if [ -d "${data.coder_parameter.workspace.value}/.coder/scripts/pre-init" ]; then
144
+
files=$(find "${data.coder_parameter.workspace.value}/.coder/scripts/pre-init" -maxdepth 1 -type f -executable -name '*.sh')
137
145
for f in "$files"; do
138
-
(cd "${var.workspace_dir}/.coder" && bash $f) || echo "[coder::preinit] Unable to run pre-init script [$f]"
146
+
(cd "${data.coder_parameter.workspace.value}/.coder" && bash $f) || echo "[coder::preinit] Unable to run pre-init script [$f]"
139
147
done
140
148
fi
141
149
142
150
# Run the docker compose project
143
-
if [ -f "${var.workspace_dir}/.coder/docker-compose.yml" ]; then
151
+
if [ -f "${data.coder_parameter.workspace.value}/.coder/docker-compose.yml" ]; then
0 commit comments