Skip to content
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

[feature-request] Add ARM64 container for Apple M1 chips #220

Closed
hyperfocus1337 opened this issue Nov 16, 2021 · 5 comments · Fixed by #234
Closed

[feature-request] Add ARM64 container for Apple M1 chips #220

hyperfocus1337 opened this issue Nov 16, 2021 · 5 comments · Fixed by #234
Assignees
Labels
enhancement New feature or request

Comments

@hyperfocus1337
Copy link

I can tell testing CAF code locally is noticeable a LOT slower locally compared to our CI.

Would like to see an ARM64 container at some point to somewhat mitigate the performance penalty.

As a sidenote, these providers would first need to get darwin_arm64 versions to make it work.

❯ terraform init
Initializing modules...

Initializing the backend...

Initializing provider plugins...
- Reusing previous version of hashicorp/tls from the dependency lock file
- Reusing previous version of hashicorp/template from the dependency lock file
- Reusing previous version of hashicorp/external from the dependency lock file
- Reusing previous version of aztfmod/azurecaf from the dependency lock file
- Reusing previous version of hashicorp/time from the dependency lock file
- Reusing previous version of hashicorp/azuread from the dependency lock file
- Reusing previous version of hashicorp/null from the dependency lock file
- Reusing previous version of hashicorp/random from the dependency lock file
- Reusing previous version of hashicorp/azurerm from the dependency lock file
- Installing hashicorp/azuread v1.4.0...
- Installed hashicorp/azuread v1.4.0 (signed by HashiCorp)
- Installing hashicorp/null v3.1.0...
- Installed hashicorp/null v3.1.0 (signed by HashiCorp)
- Installing hashicorp/random v3.1.0...
- Installed hashicorp/random v3.1.0 (signed by HashiCorp)
- Installing hashicorp/azurerm v2.81.0...
- Installed hashicorp/azurerm v2.81.0 (signed by HashiCorp)
- Installing hashicorp/tls v3.1.0...
- Installed hashicorp/tls v3.1.0 (signed by HashiCorp)
- Installing hashicorp/time v0.7.2...
- Installed hashicorp/time v0.7.2 (signed by HashiCorp)
- Installing hashicorp/external v2.1.0...
- Installed hashicorp/external v2.1.0 (signed by HashiCorp)
╷
│ Error: Incompatible provider version
│
│ Provider registry.terraform.io/aztfmod/azurecaf v1.2.7 does not have a package available for your
│ current platform, darwin_arm64.
│
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for
│ all platforms. Other versions of this provider may have different platforms supported.
╵

╷
│ Error: Incompatible provider version
│
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your
│ current platform, darwin_arm64.
│
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for
│ all platforms. Other versions of this provider may have different platforms supported.

Thanks for looking into it.

@hyperfocus1337
Copy link
Author

The azurecaf version was upgraded to 1.2.9 which resolved the missing darwin_arm64 binary.

And the deprecated template provider was resolved in aztfmod/terraform-azurerm-caf#820.

I can now use terraform locally outside the rover container without any issues, but an arm64 version of the rover container is still missing, which would be a nice complement.

@arnaudlh arnaudlh added the enhancement New feature or request label Dec 1, 2021
@arnaudlh
Copy link
Member

arnaudlh commented Dec 6, 2021

@hyperfocus1337 - I pushed a WIP branch for multi-arch targeting, still a lot of work to do but feel free to test and contribute - https://github.com/aztfmod/rover/tree/AL-M1

@arnaudlh arnaudlh self-assigned this Dec 7, 2021
@arnaudlh
Copy link
Member

Available now for testing under roveralpha:

https://hub.docker.com/r/aztfmod/roveralpha/tags?page=1&ordering=last_updated

image

@arnaudlh arnaudlh pinned this issue Dec 24, 2021
@hyperfocus1337
Copy link
Author

Awesome, thank you!!

@arnaudlh
Copy link
Member

the build number check is not ok yet, just run export ROVER_RUNNER=true in the meantime

@LaurentLesle LaurentLesle linked a pull request Jan 18, 2022 that will close this issue
@arnaudlh arnaudlh unpinned this issue Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants