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

feat: create Azure flavor #16

Closed
wants to merge 3 commits into from

Conversation

gustavlasko
Copy link

@gustavlasko gustavlasko commented May 20, 2024

Description of the change

Create a flavor of the image that contains the azcli. This will be useful for stacks that want to use ansible and need Azure credentials - i.e. connecting to AKS with kubelogin requires the Azure CLI.

Type of change

  • Bug fix (non-breaking change that fixes an issue);
  • New feature (non-breaking change that adds functionality);
  • Breaking change (fix or feature that would cause existing functionality not to work as expected);
  • Other (miscellaneous, GitHub workflow changes, changes to the PR template);

Checklists

Development

  • Parts of this pull request impacting core (user-facing, documented) product functionality have test coverage;

Code review

  • This pull request has a descriptive title and sufficient context for a reviewer. There may be a screenshot or screencast attached;
  • This pull request is no longer a draft;
  • You have reviewed this Pull Request yourself;

@gustavlasko gustavlasko force-pushed the create-azure-image branch 2 times, most recently from 1e39547 to 12b169a Compare May 20, 2024 13:22
Copy link

@mbialon mbialon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gustavlasko gustavlasko requested a review from a team as a code owner July 12, 2024 13:30
@gustavlasko gustavlasko requested a review from mbialon July 12, 2024 13:30
Create a flavor of the image that contains the azcli. This will be
useful for stacks that want to use ansible and need Azure credentials -
i.e. connecting to AKS with `kubelogin` requires the Azure CLI.
Azure CLI requires gcc and a few others, so we must install them. We
need to elevate to root to do the `apk add`,  but we then de-elevate
back when we're done.
When using pip install, it really wants us to use virtual
python environments, and will fail if we try to pip install the Azure
CLI globally. Since we have a very constrained use case for the runner,
we are OK with installing globally, as there's nothing else using the
Azure CLI to clobber.
Copy link
Member

@eliecharra eliecharra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.
We are currently reworking the way we build images on this repo, so we can't really merge this PR 🙇🏻
That being said, we'll introduce an Azure flavor with the Azure CLI built-in

@eliecharra
Copy link
Member

Closing in favor of #21

@gustavlasko Can you try it with one of the following images, and let us know if it works for you?

public.ecr.aws/spacelift/runner-ansible:10-azure
# You can also use a tag pointing to a minor version if you want better control
public.ecr.aws/spacelift/runner-ansible:10.1-azure

Also, bear in mind that this is still a work in progress, so please do not use this image for production yet 🙏🏻

@eliecharra eliecharra closed this Aug 8, 2024
@gustavlasko gustavlasko deleted the create-azure-image branch September 5, 2024 18:19
@gustavlasko
Copy link
Author

Thanks, we're rolling now with the Azure/Ansible image that you released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants