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

Remove ansible from the base and tools images #406

Closed
wants to merge 1 commit into from

Conversation

surajssd
Copy link
Member

A user can still install ansible, ansible-galaxy as they need using pip3. This will reduce the size of the image.

pip3 install ansible
ansible-galaxy collection install \
    azure.azcollection --force -p ./collections

Fixes: #402

@surajssd
Copy link
Member Author

Built a tools image off of this: quay.io/surajd/cloudshell-tools:no-ansible-at-all-2024-04-Apr-24-17-29-10 and the base image is quay.io/surajd/cloudshell:no-ansible-at-all-2024-04-Apr-24-17-29-10

@surajssd
Copy link
Member Author

Start the container:

docker run -it quay.io/surajd/cloudshell-tools:no-ansible-at-all-2024-04-Apr-24-17-29-10 bash

Install ansible and the ansible-azure collection:

pip3 install ansible
ansible-galaxy collection install azure.azcollection --force -p ./collections

@surajssd surajssd force-pushed the remove-ansible branch 2 times, most recently from 4b10602 to b7ce530 Compare April 26, 2024 21:37
@darrentu
Copy link
Contributor

@surajssd Microsoft Learn needs ansible in Cloud Shell: https://learn.microsoft.com/en-us/azure/developer/ansible/getting-started-cloud-shell?tabs=ansible#code-try-0
We should message them to get the tutorial removed first.

@surajssd surajssd force-pushed the remove-ansible branch 2 times, most recently from 7966b0d to babdaa5 Compare May 1, 2024 16:57
A user can still install ansible, ansible-galaxy
as they need using pip3. This will reduce the size
of the image.

```
pip3 install ansible
ansible-galaxy collection install \
    azure.azcollection --force -p ./collections
```

Signed-off-by: Suraj Deshmukh <[email protected]>
@surajssd
Copy link
Member Author

Closing

@surajssd surajssd closed this Oct 23, 2024
@surajssd surajssd deleted the remove-ansible branch October 23, 2024 20:36
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.

[Image Update] Remove ansible installed using pip
2 participants