This project is mirrored from https://gitee.com/NQL886/scope.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 11 Oct, 2018 1 commit
  2. 26 Sep, 2018 4 commits
    • Marcus Cobden's avatar
      Fix path confusion in bundle building · 041ebed8
      Marcus Cobden authored
      041ebed8
    • Marcus Cobden's avatar
      Fix CI by removing Dockerfile workdir · 3a0dc3c3
      Marcus Cobden authored
      3a0dc3c3
    • Marcus Cobden's avatar
      aafab27c
    • Marcus Cobden's avatar
      Rework UI build to improve caching and fix packaging issue · c03e6a0e
      Marcus Cobden authored
      Stop baking the toolchain and dependencies into the build image.
      Instead, run the install step each time, but use volume mounts or
      CircleCI caching to keep the happy path fast.
      
      Previously, some parts of the client (UI) directory were baked into the build
      image, and some parts were mounted or copied into the build environment.
      As a result, files baked into the build image require a two-step
      update for changes to take effect in CI.
      
      Now, for dockerised builds, we pre-install very little into the build
      image and mount the whole directory into the build environment.
      However, we do overlay a volume on the node_modules folder to allow the
      standard build toolchain to be separate from the host build toolchain.
      
      Non-dockerised builds (e.g. CI) are now more similar to the dockerised
      versions.
      c03e6a0e
  3. 30 Aug, 2018 2 commits
  4. 26 Jul, 2018 1 commit
  5. 14 May, 2018 1 commit
  6. 27 Dec, 2017 1 commit
  7. 11 Dec, 2017 2 commits
  8. 30 Jul, 2017 1 commit
  9. 21 Jul, 2017 1 commit
  10. 13 Jul, 2017 1 commit
  11. 04 Jul, 2017 1 commit
  12. 08 Jun, 2017 1 commit
  13. 05 Jun, 2017 1 commit
    • Roland Schilter's avatar
      Fix incomplete dependencies for `make scope/prog` · 1c4f0036
      Roland Schilter authored
      It seems that on my OS the passed param to find gets expanded early and
      thus the command
      
          $(shell find ./ -path ./vendor -prune -o -type f -name *.go)
      
      results in
      
              ./test.go ./vendor
      
      instead of including all the go files from subdirs. Quoting helps.
      1c4f0036
  14. 27 Apr, 2017 1 commit
  15. 26 Apr, 2017 1 commit
  16. 25 Mar, 2017 1 commit
  17. 23 Mar, 2017 2 commits
  18. 22 Mar, 2017 1 commit
  19. 08 Mar, 2017 1 commit
    • Iago López Galeiras's avatar
      Add eBPF connection tracking without dependencies on kernel headers · 9920c4ea
      Iago López Galeiras authored
      Based on work from Lorenzo, updated by Iago, Alban, Alessandro and
      Michael.
      
      This PR adds connection tracking using eBPF. This feature is not enabled by default.
      For now, you can enable it by launching scope with the following command:
      
      ```
      sudo ./scope launch --probe.ebpf.connections=true
      ```
      
      This patch allows scope to get notified of every connection event,
      without relying on the parsing of /proc/$pid/net/tcp{,6} and
      /proc/$pid/fd/*, and therefore improve performance.
      
      We vendor https://github.com/iovisor/gobpf in Scope to load the
      pre-compiled ebpf program and https://github.com/weaveworks/tcptracer-bpf
      to guess the offsets of the structures we need in the kernel. In this
      way we don't need a different pre-compiled ebpf object file per kernel.
      The pre-compiled ebpf program is included in the vendoring of
      tcptracer-bpf.
      
      The ebpf program uses kprobes/kretprobes on the following kernel functions:
      - tcp_v4_connect
      - tcp_v6_connect
      - tcp_set_state
      - inet_csk_accept
      - tcp_close
      
      It generates "connect", "accept" and "close" events containing the
      connection tuple but also pid and netns.
      Note: the IPv6 events are not supported in Scope and thus not passed on.
      
      probe/endpoint/ebpf.go maintains the list of connections. Similarly to
      conntrack, it also keeps the dead connections for one iteration in order
      to report short-lived connections.
      
      The code for parsing /proc/$pid/net/tcp{,6} and /proc/$pid/fd/* is still
      there and still used at start-up because eBPF only brings us the events
      and not the initial state. However, the /proc parsing for the initial
      state is now done in foreground instead of background, via
      newForegroundReader().
      
      NAT resolution on connections from eBPF works in the same way as it did
      on connections from /proc: by using conntrack. One of the two conntrack
      instances is only started to get the initial state and then it is
      stopped since eBPF detects short-lived connections.
      
      The Scope Docker image size comparison:
      - weaveworks/scope in current master:  22 MB (compressed),  68 MB
        (uncompressed)
      - weaveworks/scope with this patchset: 23 MB (compressed), 69 MB
        (uncompressed)
      
      Fixes #1168 (walking /proc to obtain connections is very expensive)
      
      Fixes #1260 (Short-lived connections not tracked for containers in
      shared networking namespaces)
      
      Fixes #1962 (Port ebpf tracker to Go)
      
      Fixes #1961 (Remove runtime kernel header dependency from ebpf tracker)
      9920c4ea
  20. 27 Feb, 2017 1 commit
    • Alfonso Acosta's avatar
      Create cloud agent image (#2284) · 98395bb5
      Alfonso Acosta authored
      * Create cloud-agent image
      
      * Refactor Makefile
      
      * Push the image from CircleCI and releases
      
      * Review feedback
      
      * Review feedback
      
      * Review feedback
      98395bb5
  21. 24 Feb, 2017 6 commits
  22. 03 Feb, 2017 2 commits
  23. 27 Jan, 2017 1 commit
    • Mike Lang's avatar
      Fix ownership issues with client/build-external · 02a2dd9d
      Mike Lang authored
      When the directory is created during the build process, it is as root.
      
      This prevents us deleting root-owned files inside the directory during make clean.
      
      In client/build/, we get around this because the directory contains a tracked file,
      so it's created during git checkout.
      We make this the case for build-external by adding a hidden, empty file to track.
      This won't fix existing checkouts though, so we also add a fix-up step to make clean.
      
      The use of .gitignore as the empty file to track is taken from
      	https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F
      Specifically:
      	"If you really need a directory to exist in checkouts you should create a file in it.
      	.gitignore works well for this purpose"
      02a2dd9d
  24. 25 Jan, 2017 2 commits
  25. 24 Jan, 2017 1 commit
  26. 15 Nov, 2016 1 commit
  27. 06 Oct, 2016 1 commit