cloud-native-toolkit / terraform-tools-gitops

Module to create a GitOps repository
6 stars 6 forks source link

setup-binaries.sh fails #92

Open deleeuwblue opened 2 years ago

deleeuwblue commented 2 years ago

I am testing with the tools container on Mac (Apple silicon) using colima container runtime.

My BOM specifies the following modules:

The terraform apply fails with the following error:

╷ │ Error: External Program Execution Failed │ │ with module.gitops_repo.module.setup_clis.data.external.setup-binaries, │ on .terraform/modules/gitops_repo.setup_clis/main.tf line 22, in data "external" "setup-binaries": │ 22: program = ["bash", "${path.module}/scripts/setup-binaries.sh"] │ │ The data source received an unexpected error while attempting to execute the program. │ │ Program: /bin/bash │ Error Message: ln: /jq: Permission denied │ ln: /gitu: Permission denied │ gitu release not found │ │ State: exit status 1

Thank you for looking.

triceam commented 2 years ago

A lot of questions...

  1. How are you running this?
  2. What container engine? (assuming you're using a container)
  3. Are you using the launch.sh script?
  4. Are you trying to execute in the /terraform folder or the /workspaces/current folder?
deleeuwblue commented 2 years ago

Hi, thanks for looking. Here are some answers:

  1. How are you running this?

iascable build -i watson-core-bom.yaml cd output sh launch.sh (from inside the container) vi bom.yaml (set some defaultValue to the variables) cd watson-core-serving/terraform terraform init cd .. sh apply.sh

  1. What container engine? (assuming you're using a container)

I am testing with the tools container on Mac (Apple silicon) using colima container runtime.

  1. Are you using the launch.sh script?

Yes, but before using it I am editing it to delete the -u "${UID}" parameter, as suggested here.

  1. Are you trying to execute in the /terraform folder or the /workspaces/current folder?

I am not using the workspaces folder.