Giter VIP home page Giter VIP logo

mobydig's Introduction

mobydig

Image to run Sysdig on Docker for mac (but not only, it should work on a docker engine on a linux host) #Why ? Why a particular image for Docker for mac ? Sysdig provides a Docker image to run sysdig/csysdig on Docker but on a Linux host. As the sources os Docker for mac are not yet avaliable, there is no easy way to use the DKMS build capability of the upstream image. Finally, I could not just publish an image to the Docker Hub as kernel are upgraded often on Docker for mac.

Why that name ? Because some difficulties to reach my target comes from the fact that Docker for mac named the kernel linux-4.4.x-moby. And that particular name had me to search for a few trick on compiling kernel libs, so it's gonna be like a souvenir every time I get back to this project.

Get it, build it

# git clone https://github.com/fdebonneval/mobydig.git
# cd mobydig
# make build

Build time is around 15 minutes with a decent internet access and my i5 MBP. After the build, the image is published in your local registry with the name mobydig:(sysdig verion) You can choose the tag/branch you want to build against by changing the VERSION variable in the Makefile

And run it

To run csysdig, the great htop like ncurses tool, just use

# make csysdig

To run sysdig, use

# make sysdig

Todo

  • Reduce image size. I gave a try to Alpine, but it seem there is an issue around Libc
  • Fix mouse inputs in spectro view
  • Write some examples

References

mobydig's People

Contributors

fdebonneval avatar mcameron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mobydig's Issues

attempt to make this on an ARMv8 server fails

I'm trying to use this to build on an ARMv8 server rather than a Mac. So far I have gotten this far:

Step 1 : FROM ubuntu:16.04
 ---> 104bec311bcd
Step 2 : MAINTAINER Foucault de Bonneval <foucault(at)commit.ninja>
 ---> Using cache
 ---> b3723bf29764
Step 3 : LABEL RUN "docker run -i -t --privileged -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro -v /lib/modules:/host/lib/modules:ro -v /usr:/host/usr:ro --name NAME IMAGE"
 ---> Using cache
 ---> 5f6f70e5e8e7
Step 4 : ARG application_version
 ---> Using cache
 ---> 31e8b98a8ff3
Step 5 : COPY resources /tmp/resources
 ---> Using cache
 ---> 47e573de59e7
Step 6 : ENV SYSDIG_HOST_ROOT /host
 ---> Using cache
 ---> 2372651e8eed
Step 7 : RUN /tmp/resources/build && rm -rf /tmp/resources
 ---> Running in ed09e5115963
write pipe: bad file descriptor
The command '/bin/sh -c /tmp/resources/build && rm -rf /tmp/resources' returned a non-zero code: 1
Makefile:25: recipe for target 'build' failed
make: *** [build] Error 1

This seems pretty fundamental but I don't know which line in the build script is giving me the error. Any debug thoughts welcomed.

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.