ewilde / terraform-provider-openfaas

Terraform OpenFaaS provider
Mozilla Public License 2.0
47 stars 8 forks source link

Doesn't work inside alpine based docker image #10

Open ufo0531 opened 4 years ago

ufo0531 commented 4 years ago

This plugin doesn't work with alpine based terraform docker image (which the official terraform docker image is the case).

When trying to use the plugin, it will give errors like below:

Failed to instantiate provider "openfaas.com/edwardwilde/openfaas" to obtain schema: fork/exec .terraform/plugins/openfaas.com/edwardwilde/openfaas/3.2/linux_amd64/terraform-provider-openfaas_v3.2: no such file or directory After some google search, it seems to be a known issue with CGO and Alpine Linux. When doing go build, CGO_ENABLED=0 needs to be set.