Skip to content

Commit 686e389

Browse files
committed
Fixed the init script downloading the fixed version of terraform provider
1 parent f54eb43 commit 686e389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

initdemo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ docker compose -f docker/compose.yml exec octopus sh -c 'if [ ! -f /usr/local/bi
440440
# Download all the terraform provider versions. This removes a point of failure during demos, as well as speeding complex deployments up.
441441
docker compose -f docker/compose.yml exec octopus sh -c 'RELEASES=$(curl --silent https://api.github.com/repos/OctopusDeployLabs/terraform-provider-octopusdeploy/releases | jq -r ".[0:5] | .[].name[1:]"); echo $RELEASES; for RELEASE in ${RELEASES}; do echo "Downloading https://github.com/OctopusDeployLabs/terraform-provider-octopusdeploy/releases/download/v${RELEASE}/terraform-provider-octopusdeploy_${RELEASE}_linux_amd64.zip"; mkdir -p "/terraformcache/registry.terraform.io/octopusdeploylabs/octopusdeploy/${RELEASE}/linux_amd64"; cd "/terraformcache/registry.terraform.io/octopusdeploylabs/octopusdeploy/${RELEASE}/linux_amd64"; if [ ! -f "terraform-provider-octopusdeploy_v${RELEASE}" ]; then curl --silent -L -o "terraform-provider-octopusdeploy_${RELEASE}_linux_amd64.zip" "https://github.com/OctopusDeployLabs/terraform-provider-octopusdeploy/releases/download/v${RELEASE}/terraform-provider-octopusdeploy_${RELEASE}_linux_amd64.zip"; unzip -o "terraform-provider-octopusdeploy_${RELEASE}_linux_amd64.zip"; rm "terraform-provider-octopusdeploy_${RELEASE}_linux_amd64.zip"; fi; done'
442442
# Download 0.13.2 specifically, which is referenced by some of the python scripts
443-
docker compose -f docker/compose.yml exec octopus sh -c 'mkdir -p "/terraformcache/registry.terraform.io/octopusdeploylabs/octopusdeploy/0.13.2/linux_amd64"; cd "/terraformcache/registry.terraform.io/octopusdeploylabs/octopusdeploy/0.13.2/linux_amd64"; if [ ! -f "terraform-provider-octopusdeploy_v${RELEASE}" ]; then curl --silent -L -o "terraform-provider-octopusdeploy_0.13.2_linux_amd64.zip" "https://github.com/OctopusDeployLabs/terraform-provider-octopusdeploy/releases/download/v0.13.2/terraform-provider-octopusdeploy_0.13.2_linux_amd64.zip"; unzip -o "terraform-provider-octopusdeploy_0.13.2_linux_amd64.zip"; rm "terraform-provider-octopusdeploy_0.13.2_linux_amd64.zip"; fi'
443+
docker compose -f docker/compose.yml exec octopus sh -c 'mkdir -p "/terraformcache/registry.terraform.io/octopusdeploylabs/octopusdeploy/0.13.2/linux_amd64"; cd "/terraformcache/registry.terraform.io/octopusdeploylabs/octopusdeploy/0.13.2/linux_amd64"; if [ ! -f "terraform-provider-octopusdeploy_v0.13.2" ]; then curl --silent -L -o "terraform-provider-octopusdeploy_0.13.2_linux_amd64.zip" "https://github.com/OctopusDeployLabs/terraform-provider-octopusdeploy/releases/download/v0.13.2/terraform-provider-octopusdeploy_0.13.2_linux_amd64.zip"; unzip -o "terraform-provider-octopusdeploy_0.13.2_linux_amd64.zip"; rm "terraform-provider-octopusdeploy_0.13.2_linux_amd64.zip"; fi'
444444
# https://developer.hashicorp.com/terraform/cli/config/config-file#explicit-installation-method-configuration
445445
docker compose -f docker/compose.yml exec octopus sh -c 'echo "provider_installation {\nfilesystem_mirror {\npath = \"/terraformcache\"\ninclude = [\"registry.terraform.io/octopusdeploylabs/octopusdeploy\"]\n}\n}" > ~/.terraformrc'
446446
docker compose -f docker/compose.yml exec octopus sh -c 'curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64; install -m 555 argocd-linux-amd64 /usr/local/bin/argocd; rm argocd-linux-amd64'

0 commit comments

Comments
 (0)