Coder Social home page Coder Social logo

Comments (9)

mateusz-gozdek-sociomantic avatar mateusz-gozdek-sociomantic commented on July 18, 2024 5

Maybe rather than cleaning up the dependencies, use multi step build (2nd FROM and COPY) and just copy over binaries and install runtime dependencies? This way you don't need to do any cleanups, which might be error-prone (as the issue).

from logdevice.

mateusz-gozdek-sociomantic avatar mateusz-gozdek-sociomantic commented on July 18, 2024 2

I'd have to sing CLA I guess, which seems to be too much hassle :)

I'd split ubuntu.deps into build deps and runtime deps and then follow https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds

from logdevice.

calebmarchent avatar calebmarchent commented on July 18, 2024 1

@MohamedBassem has passed his work-in progress changes over to me, I'll be picking this up next

from logdevice.

calebmarchent avatar calebmarchent commented on July 18, 2024 1

Update taking @MohamedBassem 's work forward; I now have a work in progress branch on my fork:
https://github.com/calebmarchent/LogDevice/tree/multistep_docker_ubuntu
This builds a docker image that can run the LogDevice cluster; image size: 340MB.

Next I'll add in more components to get all the tools working and do some testing.

from logdevice.

calebmarchent avatar calebmarchent commented on July 18, 2024

Yes, I can confirm we have been a little overzealous in clean-up of Dockerfile, having completed the build.

from logdevice.

AhmedSoliman avatar AhmedSoliman commented on July 18, 2024

That sounds like a good strategy @mateusz-gozdek-sociomantic. Would you like to send a PR to address that?

from logdevice.

AhmedSoliman avatar AhmedSoliman commented on July 18, 2024

@MohamedBassem are you going to send a PR for this or should we close that one?

from logdevice.

calebmarchent avatar calebmarchent commented on July 18, 2024

I have published a pull request: #23

from logdevice.

calebmarchent avatar calebmarchent commented on July 18, 2024

PR #23 is now merged; closing issue

from logdevice.

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.