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 tools moved to base image #463

Closed

Conversation

surajssd
Copy link
Member

@surajssd surajssd commented Aug 13, 2024

Following components were moved to base image:

  • Ansible galaxy
  • vscode
  • Azure Developer CLI
  • Bicep

This commit removes the installation of these
components from the tools image.


Should be merged after the base image is cached with changes in #482 and the tools image has the tag of the new base.

@surajssd
Copy link
Member Author

Docker image sizes with this change:

REPOSITORY                        TAG                                                                 IMAGE ID       CREATED             SIZE
quay.io/surajd/cloudshell-tools   suraj-reduce-tools-image-contents-53cfc40-2024-08-Aug-14-13-32-50   c336f3f4a1ac   About an hour ago   6.94GB
quay.io/surajd/cloudshell         suraj-reduce-tools-image-contents-53cfc40-2024-08-Aug-14-13-32-50   a8c78b8b7f00   About an hour ago   6.05GB

@surajssd
Copy link
Member Author

Tested locally end-to-end.

POWERSHELL_UPDATECHECK=Off

# Copy and run script to install Powershell modules and setup Powershell machine profile
COPY ./linux/powershell/ powershell
Copy link
Contributor

Choose a reason for hiding this comment

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

Can merge everything in tools to base except "powershell" and az cli.

@surajssd surajssd force-pushed the suraj/reduce-tools-image-contents branch 2 times, most recently from 5a0bcae to c0483b0 Compare August 21, 2024 22:12
@surajssd
Copy link
Member Author

With the latest changes the file sizes are as:

$ docker images
REPOSITORY                          TAG                                                         IMAGE ID       CREATED          SIZE
ghcr.io/surajssd/cloudshell/tools   suraj-reduce-tools-image-contents-c0483b0-20240821-225233   fec921d743f7   29 minutes ago   7.24GB
ghcr.io/surajssd/cloudshell/base    suraj-reduce-tools-image-contents-c0483b0-20240821-225233   8b7e8244234e   34 minutes ago   5.02GB

Tools and base has about 2.2GB difference.

@surajssd surajssd force-pushed the suraj/reduce-tools-image-contents branch from c0483b0 to 3e603c8 Compare August 29, 2024 17:51
@surajssd surajssd changed the title tools: Reduce size of image Remove tools moved to base image Aug 29, 2024
@surajssd surajssd changed the title Remove tools moved to base image [DO NOT MERGE] Remove tools moved to base image Aug 29, 2024
@surajssd surajssd force-pushed the suraj/reduce-tools-image-contents branch from 3e603c8 to d2aacba Compare August 29, 2024 19:42
@surajssd
Copy link
Member Author

REPOSITORY                          TAG                                                         IMAGE ID       CREATED             SIZE
ghcr.io/surajssd/cloudshell/tools   suraj-reduce-tools-image-contents-d2aacba-20240829-194858   bc2abc431591   About an hour ago   7.24GB
ghcr.io/surajssd/cloudshell/base    suraj-reduce-tools-image-contents-d2aacba-20240829-194858   8a80d4c384cf   2 hours ago         5.02GB

Following components were moved to base image:

- Ansible galaxy
- vscode
- Azure Developer CLI
- Bicep

This commit removes the installation of these
components from the tools image.

Signed-off-by: Suraj Deshmukh <[email protected]>
@surajssd surajssd force-pushed the suraj/reduce-tools-image-contents branch from d2aacba to 0d350f4 Compare October 10, 2024 16:48
@surajssd surajssd changed the title [DO NOT MERGE] Remove tools moved to base image Remove tools moved to base image Oct 10, 2024
Move the az extensions and tools installation
right after the az cli is installed.

Signed-off-by: Suraj Deshmukh <[email protected]>
The newer format for defining env var has changed
format from:

```
ENV key val
```

to:

```
ENV key=val
```

Signed-off-by: Suraj Deshmukh <[email protected]>
@surajssd surajssd closed this Oct 10, 2024
@surajssd
Copy link
Member Author

Closed in favor of #496

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.

2 participants