Giter Site home page Giter Site logo

Comments (8)

edannenberg avatar edannenberg commented on May 24, 2024 1

@azimut with the latest changes you should now be able to simplify your repo setup:

./rpi-cluster
├── builder
│   ├── bob-armv7a
│   ├── bob-armv7a-musl
│   └── bob-armv7a-musl-libre
└── images
build.conf
README.md

Then just clone the whole thing under gentoobb/dock.

Set STAGE3_BASE for bob-armv7a and bob-armv7a-musl. bob-musl's build.conf should be pretty much what you want, probably enough to change STAGE3_BASE and ARCH. bob-armv7a-musl-libre can just extend bob-armv7a-musl by configuring BUILDER.

from kubler.

edannenberg avatar edannenberg commented on May 24, 2024

Nice. Tried the minimal flag for ncurses, seems to work but "only" seeing about 1mb size reduction on my end.

from kubler.

edannenberg avatar edannenberg commented on May 24, 2024

Looking at /usr/share/ in the bash image the only big chunk left seems to be misc/magic.mgc with around 5mb. Removing that is probably not a good idea, but providing a minimal version might be an option.

from kubler.

azimut avatar azimut commented on May 24, 2024

right, probably at docker image level is about that, I just base it on "du"

sh-4.3# du -sh /usr/share/terminfo/
6.7M	/usr/share/terminfo/

Ha! I will consider removing that on my image.

btw, other rabbit-hole to reduce size is libressl https://github.com/azimut/rpi-cluster/blob/master/gentoo-bb/namespaces/stage3-armv7a-musl-libressl/dock/gentoobb-arm-musl-libressl/builder/bob/Buildconfig.sh

but probably not applicable here due lack of nodejs support for it

from kubler.

soredake avatar soredake commented on May 24, 2024

but probably not applicable here due lack of nodejs support for it

+bundled-openssl is solution (for me, at least) for now (or maybe forever)

from kubler.

jbergstroem avatar jbergstroem commented on May 24, 2024

@azimut we (node.js) have a work in progress patch for libressl but it's alpha and isn't on par feature-wise: nodejs/node#9376

from kubler.

azimut avatar azimut commented on May 24, 2024

@edannenberg That worked, not the easiest migration ever (mainly due I had a typo on CFLAGS that collided with the new approach of force rebuild of bob-core if CFLAGS are changed), but it worked!. I will create other bug for libressl which is the pending topic that appeared here. Any reason to leave this open? I am not building anything that pulls "file" so I can't help with the magic.mgc test.

from kubler.

edannenberg avatar edannenberg commented on May 24, 2024

Glad it worked out.

the new approach of force rebuild of bob-core if CFLAGS are changed

Was sadly no other way around it. CFLAGS need to be defined per stage3 build container now, with only one stage3 we could just export the namespace/global default, but now this context may no longer be accurate after the stage3 build container is built.

Any reason to leave this open? I am not building anything that pulls "file" so I can't help with the magic.mgc test.

magic.mgc will probably amount to 1MB image size, so gain/pain ratio fiddling with that is not really worth it IMO. Closing. :)

from kubler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.