Hi, I created custom terraform provider.
I want to use that provider insider docker.
I build docker file by using hashicorp/terraform
Here is start of Dockerfile FROM hashicorp/terraform:1.4.2
Docker has been build on linux ubuntu,
Custom terraform provider also has been build and copied inside the docker into proper place.
Then I map corresponding directories containing tf files and started docker with entry point “sh”
Then run command “terraform apply” and got error:
│ Error: Failed to load plugin schemas
│ Error while loading schemas for plugin components: Failed to obtain provider schema: Could not load the schema for provider localhost/supermicro/orch: failed to instantiate provider
│ “<…>//orch” to obtain schema: fork/exec .terraform/providers/<…>//orch/1.0.1/linux_amd64/terraform-provider-orch: no such file or directory…
I tried to run executable by myself and got error like
/app # ./ter
sh: ./ter: not found
Looks like executable has wrong format. I can run that executable on ubuntu.
Your docker OS has version
app # cat /etc/os-release
PRETTY_NAME=“Alpine Linux v3.17”
BUG_REPORT_URL=“Issues · alpine / aports · GitLab”
Just for testing I copied unzip form ubuntu inside your docker and got the same message:
/app # ./unzip
sh: ./unzip: not found
Do you have terraform docker based on ubuntu?
Any other options?