Code Monkey home page Code Monkey logo

diamond's Introduction

Diamond

Here it comes Diamond base image

Diamond is the smallest lightweight Docker container on the planet. With a footprint of 1.215 MB, it is even smaller than busybox:

REPOSITORY      TAG         IMAGE ID        CREATED          SIZE
lgsd/diamond    latest      b87c1c99c103    3 seconds ago    1.215 MB 
busybox         latest      769b9341d937    2 days ago       2.489 MB
ubuntu          12.04       8dbd9e392a96    8 months ago     131.3 MB 

Written as a part of my editorial project: "Docker Essentials" e-book. Made with Buildroot: making Embedded Linux easy, Diamond is a proof of concept "Base Image" to use for embedding self contained small apps on top of lightweight Docker boxes.

Use

$ docker pull lgsd/diamond
$ docker run -i -t lgsd/diamond sh

Re-building

Rebuild the Diamond by clone the current https://github.com/lgs/diamond source code

$ git clone https://github.com/lgs/diamond.git && cd diamond

Run the tarmaker meta-builder but don't forget to set “target architecture” menu. Select x86_64 when required by the GUI and exit

$ sh -x diamond-build.sh 

Now import with docker import, the new compiled rootfs image

$ docker import - diamond < ./rootfs.tar
$ docker run -i -t diamond sh
/ # uname -a
Linux 6c10f137a0d5 3.11.0-15-generic #25-Ubuntu SMP Thu Jan 30 17:22:01 UTC 2014 x86_64 GNU/Linux

Copyright

Copyright (c) 2013-2016 Luca G. Soave

diamond's People

Contributors

lgs avatar

Stargazers

 avatar [riftlab] ErgoZ avatar Supachai.S avatar Elena Neroslavskaya avatar Bumsoo Kim avatar Peter Kappus avatar  avatar Sean McClintock avatar  avatar Sang-Hoon RHEE avatar Luis Gonzalez avatar Chance avatar hacfi avatar Rafael Römhild avatar Howard Mei avatar Andrei Serdeliuc avatar Daegwon Nacyot Kim avatar valentin avatar Benjamin Cavileer avatar  avatar

Watchers

Benjamin Cavileer avatar James Cloos avatar  avatar

diamond's Issues

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.