Skip to content

Conversation

@ethanjli
Copy link
Contributor

@ethanjli ethanjli commented Jan 13, 2026

#20 is failing the CI workflow for building the Docker ctr img (for offline deployment in rpi-imswitch-os) in the step for building the container image, due to running out of disk space in the runner VM (see https://github.com/openUC2/openUC2.github.io/actions/runs/20818399648/job/59799971416). This PR attempts to delete some files which should be safe to delete before building the container image, in order to free up disk space. This PR also excludes archived docs and Seeed Microscope docs (which are provided without rpi-imswitch-os) from the container image.

This work is tracked on Notion at https://www.notion.so/Shrink-the-offline-docs-site-2a84e612c78a80f094e4c221da72ae26?source=copy_link

@ethanjli
Copy link
Contributor Author

Before this PR, on 6caab2f in early November (which appears to be the last time the docs built successfully!!), the ctr img was reported by dive to have the following sizes:

  • image layer (from build/assets/images): 938 MB
  • layer of everything else: 517 MB
  • all layers: 1.5 GB

Now, in 77e654e, the ctr img is reported by dive to have the following sizes:

  • image layer: 691 MB
  • layer of everything else: 512 MB
  • all layers: 1.3 GB

This is a size reduction of ~250 MB - not too bad, but definitely room for improvement.

@ethanjli
Copy link
Contributor Author

The resulting ctr img seems to work fine in testing on openUC2/rpi-imswitch-os#104 , so I'll merge this PR now.

@ethanjli ethanjli marked this pull request as ready for review January 13, 2026 15:42
@ethanjli ethanjli merged commit 1c7d2b1 into master Jan 13, 2026
1 check passed
github-merge-queue bot pushed a commit to openUC2/rpi-imswitch-os that referenced this pull request Jan 14, 2026
This PR reduces the size of the ctr img for the offline docs site by
integrating openUC2/openUC2.github.io#21.

This PR also deletes the no-longer-used CI workflow for building
bookworm OS images, as a follow-up to
#72 .

This work is tracked on Notion at
https://www.notion.so/Shrink-the-offline-docs-site-2a84e612c78a80f094e4c221da72ae26?source=copy_link
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