You will need the following things properly installed on your computer.
- Node.js (with NPM)
- Ember CLI:
npm install -g ember-cli
- Sysdig!
- clone https://github.com/draios/sysdig
- build the tool following instructions at https://github.com/draios/sysdig/wiki/How-to-Install-Sysdig-from-the-Source-Code#linux-and-osx
- NPM nodemon
npm install -g nodemon
- Will be expected to be installed when running the backend component (see below).
- More info: https://www.npmjs.com/package/nodemon
- Python v2.7: Some npm dependencies require Python to be compiled (see node-gyp). It is recommended to use virtualenv to properly configure the Python environment
git clone https://github.com/draios/sysdig-inspect.git
cd sysdig-inspect
npm run setup
You'll need two separate terminals, one for the server and one for the frontend:
-
Server
npm run start:backend -- [path to sysdig binaries]
-
Web application
npm run start:webapp
- Visit your app at http://localhost:4200
npm run start:electron
npm run bundle -- [path to sysdig binaries]
- MAC:
npm run make:mac
- Linux:
npm run make:linux
The environment setup and app builds will create several artifacts. Here is how to clean it up to start fresh:
npm run clean
git clone https://github.com/draios/sysdig-inspect.git
cd sysdig-inspect
npm run setup:win
You'll need two separate terminals, one for the server and one for the frontend:
-
Server
npm run start:win:backend -- [path to sysdig binaries]
-
Web application
npm run start:webapp
- Visit your app at http://localhost:4200
npm run start:electron
npm run bundle:win -- [path to sysdig binaries]
npm run make:win
The environment setup and app builds will create several artifacts. Here is how to clean it up to start fresh:
npm run clean:win
You can also create a Docker image to run Sysdig Inspect. This will make Sysdig Inspect available as web application, already bundled with sysdig.
First, make sure to follow the Prepare the environment sections above. Then, here's how you can build the image:
npm run make:docker-image
# build the image with Docker
docker build . -t sysdig-inspect:0.1
You can now start the container:
docker run -d -v /local/path/to/captures/:/captures -p8080:3000 sysdig-inspect:0.1
Note that:
- It's recommended to mount the directory where you have the Sysdig capture files (
/local/path/to/captures
in the example) to the directory you will use in Sysdig Inspect (/captures
in the example) - You can pick the TCP port you'll use in the browser to launch Sysdig Inspect (
8080
in the example). The container will expose port 3000/tcp
And that's it! Now you can open http://localhost:8080 and open a capture file like /captures/my-capture.scap
.