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

♻️ Improved run instruction #14

Merged
merged 8 commits into from
Jan 3, 2025

Conversation

meisZWFLZ
Copy link
Member

  • Makes it a little more readable by using heredoc
  • Pipes tar.xz to tar to prevent writing it to disk
  • Uses brace expansion where possible to shorten
  • Don't even write some of the unnecessary files to disk

meisZWFLZ and others added 2 commits January 1, 2025 23:48
- Makes it a little more readable by using heredoc
- Pipes tar.xz to tar to prevent writing it to disk
- Uses brace expansion where possible to shorten
- Don't even write some of the unnecessary files to disk
…icency and convert all tar --exclude params to their original rm/find forms.
@meisZWFLZ meisZWFLZ merged commit 7ab2a23 into uhh/dieting-the-whole-image Jan 3, 2025
2 checks passed
ABUCKY0 added a commit that referenced this pull request Jan 3, 2025
* Test Alpine linux (See Jerrylum/pros-build)

* Update Dockerfile

* Update Dockerfile

* Use pipx

* Update Dockerfile

* Add root/.local/bin to path

* Make build.sh in the root folder

* Try specifying filename where to copy build.sh to

* Update Dockerfile

* Update Dockerfile

* Change /build.sh to ~/build.sh

* Update Dockerfile

* Update Dockerfile

* add sh and bash for good measure

* Update Dockerfile

* Put the toolchain on a serious diet

* Comment out G++

* forgot to uncomment the path 💀

* add G++ back in

* run ldd on each program in the dieted toolchain

* try ldd again

* Update Dockerfile

* Update copied files

* Change non-dieted files.

* Add libexec to included files

* add possibly missing /

* Update Dockerfile

* Remove extra folder from mkdir

* remove -r flag

* include arm-none-eabi/lib too

* pivot to deleting stuff from the toolchain folder instead of selectively copying stuff. Starting with arm-none-eabi folder

* Delete share folder instead

* try deleting arm-none-eabi/lib

* forgot the folder prefix

* delete /lib/gcc/arm-none-eabi/13.3.1/arm and /lib/gcc/arm-none-eabi/13.3.1/thumb

* delete all but v7-a+fp in thumb

* forgot /arm-none-eabi-toolchain prefix again

* remove files in RUN rm -f /arm-none-eabi-toolchain/lib/gcc/arm-none-eabi/13.3.1/* but not folders

* Update Dockerfile

* Update action.yml to test externally

* Update Dockerfile with stages

* fix copy from stage

* comment out rm command to test stages

* add back package installation

* Update Dockerfile

* refactor to have more stages

* Update Dockerfile

* Update build-image.yml

* Update build-image.yml

* Update build-image.yml

* Remove line that deletes all 13.3.1 subfiles and subfolders

* Diet some more files 

arm-none-eabi-cpp, arm-none-eabi-gdb, arm-none-eabi-gcc-13.3.1,

* Change dieted files to their actual location (misread on my part)

* Update Dockerfile

* diet some more folders

* we cut too much

* Update build.sh

* Update test.yml

* revert back

* revert back

* Update action.yml

* also remove gbd-py from toolchain bin folder

* Update Dockerfile

* re-add pros-cli

* steal additional thumb deleting from jerryio's container

* Update Dockerfile labels

* Update Dockerfile

* Thanks to @Jerrylum

* Remove total build script runtime from build.sh as it's confusing

* Delete packagelist

* Update README.md

* Update action.yml with v4.0.0

* remove pruning steps

* Update build.sh to use shell instead of bash

* remove bash

* Restore bash

* ♻️ Improved run instruction (#14)

* ♻️ Improved run instruction
- Makes it a little more readable by using heredoc
- Pipes tar.xz to tar to prevent writing it to disk
- Uses brace expansion where possible to shorten
- Don't even write some of the unnecessary files to disk

* split toolchain downloading into seperate RUN command for caching efficency and convert all tar --exclude params to their original rm/find forms.

* Fix broken gcc rm command for /bin/arm-none-eabi-gcc-13.3.1

* fix gcc-13.3.1 removal

* delete long_toolchain variable

* 💄 Remove extra whitespace

* remove package installation from get-dependencies since it's already redone in runner stage and the packages aren't used in the get-deps stage

---------

Co-authored-by: ABUCKY0 <[email protected]>

* Delete commented commands for clarity

---------

Co-authored-by: Andrew Curtis <[email protected]>
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