-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Alpine Linux #597
Comments
@james-crowley thx for Issue. I have some speculation in mind but can you provide the whole setup to reproduce it locally so I could experiment when i have some spare time? tia E.g the version of alpine linux, dockerfile etc. etc |
@MalloZup Sorry for the delay, I was on vacation last week. Here is my dockerfile I am trying to use to build the plugin:
I am currently testing is on by Mac running Additionally, here is my dockerfile that I would be using once I get the plugin binary built:
If you need anything else please let me know! |
@MalloZup Any updates on this issue? I am putting together a work flow/demo and would love to use alpine for it. I know you guys got your handsful with Terraform v0.12, but I did not know if you had quick fix for this. Thanks for the help! |
@james-crowley ok I spent some time to your issue. for building the provider-libvirt to alpine-linux: I have used your 1st dockerfile
|
In this way you have the binary. Use the make targets for that, especially the Once you have builded to alpine you can transfer to your other container |
@james-crowley let me know if you have other issue. But i think it should be solved and we can close once you have positive feedback. Thx! |
@MalloZup After some testing it seems to work. The only issue I ran into is the new When I build the Alpine binary, is there away to tell it to build a certain version? I tried to checkout https://github.com/dmacvicar/terraform-provider-libvirt/tree/v0.5.1 , but building it gave me an error. |
@james-crowley for building a certain |
@MalloZup thanks for all the help. Closing the issue. |
@james-crowley yw! feel free to share your presentation some days 😺 and good luck! |
I am trying to utilize this Terraform plugin in a docker build that runs Alpine linux. Currently, when I try to use the plugin by adding the binary to my docker container, I get the following error:
This error lead to to this issue: vancluever/terraform-provider-acme#29
Looks like Alpine needs a static linked binary instead of dynamic lined binary, which is what your binaries build as.
I tried to manually build the plugin, but to make it statically linked, I think I need to disable
CGO_ENABLED
, which is required to be enabled by libvirt-go.After install all the requirements and trying to disable CGO I end up with this error:
I am not sure what the solution is as I am pretty new to GO. But any help you guys can provide would be great!
The text was updated successfully, but these errors were encountered: