Skip to content

Remove cargo toolchains to minimize image#17

Merged
Rozzii merged 1 commit into
mainfrom
nuhakala/reduce-image-size
May 21, 2026
Merged

Remove cargo toolchains to minimize image#17
Rozzii merged 1 commit into
mainfrom
nuhakala/reduce-image-size

Conversation

@nuhakala
Copy link
Copy Markdown
Member

Removes cargo toolchains which reduces the image size ~250MB and also few small edits to keep build log cleaner.

Signed-off-by: Nuutti Hakala <nuutti.hakala@est.tech>
rm -rf /usr/lib/systemd/system/apparmor.service
rm -rf /lib/apparmor
rm -rf /root/.cargo
rm -rf /root/.rustup
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is the line that reduces the image size, other changes are cleaning the build log.

Copy link
Copy Markdown
Contributor

@Rozzii Rozzii left a comment

Choose a reason for hiding this comment

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

/approve

@metal3-io-bot
Copy link
Copy Markdown
Member

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Rozzii

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Rozzii Rozzii merged commit 94aa39f into main May 21, 2026
1 of 2 checks passed
@Rozzii Rozzii deleted the nuhakala/reduce-image-size branch May 21, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants