├── .gitignore ├── LICENSE ├── README.md ├── assets └── logo.png ├── golang ├── Dockerfile ├── README.md └── go-logo.png ├── jvm ├── Dockerfile ├── README.md └── java-logo.png ├── nodejs ├── Dockerfile ├── README.md └── node-logo.png └── python ├── Dockerfile ├── README.md └── python-logo.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | KoolKits logo 2 | 3 | # 🧰 KoolKits 🧰 4 | 5 | Opinionated, language-specific, batteries-included debug container images for Kubernetes. 6 | 7 | Available for: 8 | 9 | [![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)](https://github.com/lightrun-platform/koolkits/tree/main/nodejs) [![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](https://github.com/lightrun-platform/koolkits/tree/main/python) [![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=java&logoColor=white)](https://github.com/lightrun-platform/koolkits/tree/main/jvm) [![Go](https://img.shields.io/badge/go-%2300ADD8.svg?style=for-the-badge&logo=go&logoColor=white)](https://github.com/lightrun-platform/koolkits/tree/main/golang) 10 | 11 | KoolKits (**K**ubernetes t**oolkits**) are language-specific container images that contain a (highly-opinionated) set of tools for debugging applications running in Kubernetes pods. You can read more about the motivation behind this project [here](#-motivation-). 12 | 13 | Prefer video to reading? We have you covered: 14 | 15 | [![Watch the video](https://i.imgur.com/UZvVnT9.png)](https://www.youtube.com/watch?v=xRsdA4EGUlE) 16 | 17 | Those images are intended for use with the new `kubectl debug` feature, which spins up [Ephemeral containers](https://kubernetes.io/docs/concepts/workloads/pods/ephemeral-containers/) for interactive troubleshooting. A KoolKit will be pulled by `kubectl debug`, spun up as a container in your pod, and have the ability to access the same process namespace as your original container. 18 | 19 | Since production containers are usually **[rather bare](https://cloud.google.com/architecture/best-practices-for-building-containers#remove_unnecessary_tools)**, using a KoolKit enables you to **troubleshoot with power tools** instead of relying on what was left behind due to the generosity (or carelessness) of whoever originally built the production image. 20 | 21 | ## 🏁 Quickstart 🏁 22 | 23 | Run a Node.js KoolKit in your production cluster (Kubernetes v1.23 and above): 24 | 25 | ```shell 26 | kubectl debug -it --image=lightrun-platform/koolkits/koolkit-node --image-pull-policy=Never --target= 27 | ``` 28 | 29 | Run a JVM KoolKit in MiniKube (Kubernetes v1.23 and above): 30 | 31 | ```shell 32 | minikube kubectl -- debug -it --image=lightrun-platform/koolkits/koolkit-jvm --image-pull-policy=Never --target= 33 | ``` 34 | 35 | #### Adding to `.bashrc`/`.zshrc` 36 | 37 | You can use KoolKits faster by adding the following function to your `.bashrc`: 38 | 39 | ```bash 40 | echo "## KoolKits - Shorthand 41 | kk() { 42 | kubectl debug -it $1 --image=lightruncom/koolkits:$2 --image-pull-policy=Never --target=$3 43 | }" >> ~/.bashrc 44 | source ~/.bashrc 45 | ``` 46 | 47 | Or into your `.zshrc`: 48 | ```zsh 49 | echo "## KoolKits - Shorthand 50 | kk() { 51 | kubectl debug -it $1 --image=lightruncom/koolkits:$2 --image-pull-policy=Never --target=$3 52 | }" >> ~/.zshrc 53 | source ~/.zshrc 54 | ``` 55 | 56 | Then run `kk`: 57 | 58 | ```bash 59 | kk demo-123123-qweqwe2 jvm demo 60 | ``` 61 | 62 | Where the full syntax is: 63 | 64 | ```shell 65 | kk 66 | ``` 67 | 68 | ## 👇 Available KoolKits 👇 69 | 70 | Each of the folders in this repo contains the Dockerfile - and a short explanation of - the debug image. All KoolKits are based on the [`ubuntu:20.04`](https://hub.docker.com/layers/ubuntu/library/ubuntu/20.04/images/sha256-57df66b9fc9ce2947e434b4aa02dbe16f6685e20db0c170917d4a1962a5fe6a9?context=explore) base image, since real people need real shells. 71 | 72 | The list: 73 | 74 | 1. [`koolkit-jvm`](jvm/README.md) - AdoptOpenJDK 17.0.2 & related tooling (including `jabba` for easy version management and Maven 3.8.4) 75 | 1. [`koolkit-node`](nodejs/README.md) - Node 16.13.1 & related tooling (including `nvm` for easy version management) 76 | 1. [`koolkit-python`](python/README.md) - Python 3.10.2 & related tooling (including `pyenv` for easy version management) 77 | 1. [`koolkit-golang`](golang/README.md) - Go 1.17.6 & related tooling (including `gvm` for easy version management) 78 | 79 | Note that you don't actually have to build them yourselves - all KoolKits are hosted publicly on [Docker Hub](https://hub.docker.com/repository/docker/lightruncom/koolkits) and available free of charge. 80 | 81 | **Got a suggestion for improvements?** We'd be happy to hear all about it - just open an issue with the requested tooling. 82 | 83 | ## 🚧 Coming up / WIP 🚧 84 | 85 | - [x] A whole new, Go 1.17.7 KoolKit _(released on March 2022)_ 86 | - [ ] JVM KoolKit - [`jvm-profiler`](https://github.com/uber-common/jvm-profiler), [`jHiccup`](https://github.com/giltene/jHiccup) support 87 | - [ ] Node.js KoolKit - [`llnode`](https://github.com/nodejs/llnode), [`thetool`](https://github.com/sfninja/thetool) support 88 | - [ ] Python KoolKit - [`vardbg`](https://github.com/CCExtractor/vardbg), [`memprof`](https://github.com/jmdana/memprof) support 89 | ## 🏃 Motivation 🏃 90 | 91 | There's a [well-known Kubernetes best practice](https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-how-and-why-to-build-small-container-images) that states that one should build **small** container images. This makes sense for a few different reasons: 92 | 93 | 1. Building the image will consume less resources (aka CI hours) 94 | 2. Pulling the image will take less time (who wants to pay for so much ingress anyways?) 95 | 3. Less stuff means less surface area exposed to security vulnerabilities, in a [world where even no-op logging isn't safe anymore](https://en.wikipedia.org/wiki/Log4Shell) 96 | 97 | There's also a lot of tooling in existence that helps you get there without doing too much heavy lifting: 98 | 99 | 1. [Alpine Linux](https://hub.docker.com/_/alpine) base images are super small 100 | 2. [DistroLess Docker images](https://github.com/GoogleContainerTools/distroless) go a step further and remove everything but the runtime 101 | 3. [Docker multi-stage builds](https://docs.docker.com/develop/develop-images/multistage-build/) help create thin final production images 102 | 103 | The problem starts when you're trying to debug what's happening inside those containers. By using a small production image you're forsaking a large amount of tools that are **invaluable** when wrapping your head around a problem in your application. 104 | 105 | By using a KoolKit, you're allowing yourself the benefits of a small production image without compromising on quality tools - each KoolKit contains hand-picked tools for the specific runtime it represents, in addition to a more generic set of tooling for Linux-based systems. 106 | 107 | *P.S. KoolKits was inspired by [`kubespy`](https://github.com/huazhihao/kubespy) and [`netshoot`](https://github.com/nicolaka/netshoot).* 108 | 109 | ## 🗯️ Considerations 🗯️ 110 | 111 | ### Size of Images 112 | 113 | KoolKits Docker images tend to run, uhm, rather **large**. 114 | 115 | KoolKits are intended to be downloaded once, kept in the cluster's Docker registry, and then spun up immediately on demand as containers. Since they're not intended for constant pulling, and since they're intended to be packed with goodies, this is a side effect we're willing to endure. 116 | 117 | ### Using Ubuntu base images 118 | 119 | Part of the reason it's hard to create a really slim image is due to our decision to go with a full Ubuntu 20.04 system as the basis for each KoolKit. This mainly came from our desire to replicate the same environment you would debug with locally inside your clusters. 120 | 121 | For example, this means no messing around with Alpine alternatives to normal Ubuntu packages you're used to working with. Actually, this means we have a way of including tools **that have no Alpine versions** in each KoolKit. 122 | 123 | ### Using language version managers 124 | 125 | Each KoolKit uses (wherever possible) a language version manager instead of relying on language-specific distros. This is done to allow you to install older runtime versions easily, and in order to allow you to swap between runtime versions at will (for example, to get specific versions of tooling that only exist for specific runtime versions), as need be. 126 | 127 | ## 💗 Contribution 💗 128 | 129 | We'd be more than happy to add tools we missed to any image - just [open a pull request](https://github.com/lightrun-platform/koolkits/pulls) or [an issue](https://github.com/lightrun-platform/koolkits/issues) to suggest one. 130 | -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightrun-platform/koolkits/09d36347799cf556517083236a94f4b512ef6242/assets/logo.png -------------------------------------------------------------------------------- /golang/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | ENV GO_VERSION=go1.17.6 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | SHELL ["/bin/bash", "-c"] 5 | 6 | RUN apt-get update && \ 7 | apt-get install --yes --no-install-recommends --quiet \ 8 | apache2-utils \ 9 | binutils \ 10 | bird \ 11 | bison \ 12 | bpfcc-tools \ 13 | bridge-utils \ 14 | build-essential \ 15 | conntrack \ 16 | ctop \ 17 | curl \ 18 | dhcping \ 19 | dnsutils \ 20 | ethtool \ 21 | fping \ 22 | fzf \ 23 | gdb \ 24 | git \ 25 | gnupg2 \ 26 | htop \ 27 | httpie \ 28 | iftop \ 29 | iperf \ 30 | iproute2 \ 31 | ipset \ 32 | iptables \ 33 | iptraf-ng \ 34 | iputils-ping \ 35 | ipvsadm \ 36 | jq \ 37 | liboping-dev \ 38 | libunwind8 \ 39 | linux-tools-common \ 40 | mtr \ 41 | mycli \ 42 | netcat \ 43 | netgen \ 44 | nftables \ 45 | ngrep \ 46 | nmap \ 47 | pgcli \ 48 | postgresql \ 49 | python3-pip \ 50 | python3.8 \ 51 | scapy \ 52 | snmp \ 53 | snmpd \ 54 | socat \ 55 | software-properties-common \ 56 | strace \ 57 | tcpdump \ 58 | tcptraceroute \ 59 | termshark \ 60 | tmux \ 61 | tshark \ 62 | unzip \ 63 | util-linux \ 64 | vim \ 65 | wuzz 66 | 67 | WORKDIR /usr/local/bin 68 | 69 | # Get pip packages 70 | RUN pip3 install litecli iredis 71 | # Get flamegraph 72 | RUN curl -L https://github.com/brendangregg/FlameGraph/archive/refs/heads/master.zip -o flamegraph.zip && \ 73 | unzip flamegraph.zip && \ 74 | rm flamegraph.zip && \ 75 | echo "alias flamegraph='/usr/local/bin/FlameGraph-master/flamegraph.pl'" >> /root/.bashrc && \ 76 | # Get redis-cli 77 | curl http://download.redis.io/redis-stable.tar.gz -o redis-stable.tar.gz && \ 78 | tar -xvzf redis-stable.tar.gz && \ 79 | rm redis-stable.tar.gz && \ 80 | cd redis-stable && \ 81 | make && \ 82 | echo "alias redis-cli='/usr/local/bin/redis-stable/src/redis-cli'" >> /root/.bashrc 83 | # Get alp 84 | RUN curl -L https://github.com/tkuchiki/alp/releases/download/v1.0.8/alp_linux_amd64.zip -o alp.zip && \ 85 | unzip alp.zip && \ 86 | rm alp.zip 87 | #Get gvm and install golang 88 | RUN bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) && \ 89 | source /root/.gvm/scripts/gvm && \ 90 | gvm install $GO_VERSION -B && \ 91 | gvm use $GO_VERSION --default 92 | # Get pprof 93 | RUN GOBIN=/usr/local/bin ~/.gvm/gos/go1.17.6/bin/go install github.com/google/pprof@latest &&\ 94 | # Get dlv 95 | ~/.gvm/gos/go1.17.6/bin/go install github.com/go-delve/delve/cmd/dlv@latest && \ 96 | # Get go-callvis 97 | ~/.gvm/gos/go1.17.6/bin/go install github.com/ofabry/go-callvis@latest 98 | # Get mongo shell (not available over apt) 99 | RUN curl -L https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-org-shell_5.0.5_amd64.deb -o mongodb-org-shell_5.0.5_amd64.deb && \ 100 | dpkg -i mongodb-org-shell_5.0.5_amd64.deb && \ 101 | rm mongodb-org-shell_5.0.5_amd64.deb && \ 102 | #Get calicoctl (inside the pod) 103 | curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o calicoctl && \ 104 | chmod +x calicoctl && \ 105 | #Get websocat (not available over apt) 106 | curl -L https://github.com/vi/websocat/releases/latest/download/websocat_linux64 -o websocat && \ 107 | chmod +x websocat 108 | 109 | CMD ["/bin/bash"] -------------------------------------------------------------------------------- /golang/README.md: -------------------------------------------------------------------------------- 1 | ## Go KoolKit 2 | 3 | 4 | 5 | KoolKits (**K**ubernetes t**oolkits**) are language-specific container images, that contain a (highly-opinionated) set of tools for debugging applications running in Kubernetes pods. You can read more about KoolKits [here](../README.md) or learn about the motivation behind this project [here](#Motivation). 6 | 7 | To get started, first add the shorthand `kk` command to your shell by pasting the following snippet into your shell: 8 | 9 | ```bash 10 | echo "## KoolKits - Shorthand 11 | kk() { 12 | kubectl debug -it $1 --image=lightruncom/koolkits:$2 --image-pull-policy=Never --target=$3 13 | }" >> ~/.bashrc 14 | source ~/.bashrc 15 | ``` 16 | 17 | Then run the Go KoolKit with your pod: 18 | 19 | ```bash 20 | kk golang 21 | ``` 22 | 23 | The Go KoolKit contains the following Go utilities (available on `$PATH` wherever applicable): 24 | 25 | * [`delve`](https://github.com/go-delve/delve) - Delve is a debugger for the Go programming language. 26 | * [`pprof`](https://github.com/google/pprof) - pprof is a tool for visualization and analysis of profiling data. 27 | * [`fzf`](https://github.com/junegunn/fzf) - fzf is a general-purpose command-line fuzzy finder. 28 | * [`alp`](https://github.com/tkuchiki/alp) - Talp is Access Log Profiler. 29 | * [`go-callvis`](https://github.com/ofabry/go-callvis) - go-callvis is a development tool to help visualize call graph of a Go program using interactive view. 30 | * [`gvm`](https://github.com/moovweb/gvm) - GVM provides an interface to manage Go versions. 31 | 32 | In addition, it contains the following utilities on top of the official [`ubuntu:20.04` image](https://hub.docker.com/layers/ubuntu/library/ubuntu/20.04/images/sha256-7c9c7fed23def3653a0da5bc9ecb651efe155ebd5802c7ba5d585edaa6c89496?context=explore): 33 | 34 | ```text 35 | bird 36 | calicoctl 37 | conntrack 38 | ctop 39 | curl 40 | dhcping 41 | dnsutils 42 | fping 43 | gdb 44 | htop 45 | httpie 46 | iftop 47 | iperf 48 | iproute2 49 | ipset 50 | iptraf-ng 51 | iputils-ping 52 | ipvsadm 53 | iredis 54 | jq 55 | ldnsutils 56 | liboping-dev 57 | linux-tools-common 58 | maven 59 | mongo 60 | mtr 61 | mycli 62 | mysql-client 63 | netcat 64 | netgen 65 | nftables 66 | ngrep 67 | nmap 68 | pgcli 69 | postgresql-client 70 | redis-tools 71 | scapy 72 | socat 73 | software-properties-common 74 | strace 75 | tcpdump 76 | tcptraceroute 77 | termshark 78 | tmux 79 | tshark 80 | unzip 81 | vim 82 | websocat 83 | wuzz 84 | zip 85 | ``` -------------------------------------------------------------------------------- /golang/go-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightrun-platform/koolkits/09d36347799cf556517083236a94f4b512ef6242/golang/go-logo.png -------------------------------------------------------------------------------- /jvm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | ENV JAVA_VERSION=17.0.2-tem 3 | ENV MAVEN_VERSION=3.8.4 4 | ENV DEBIAN_FRONTEND=noninteractive 5 | 6 | RUN apt-get update && \ 7 | apt-get install --yes --no-install-recommends --quiet \ 8 | bird \ 9 | conntrack \ 10 | ctop \ 11 | curl \ 12 | dhcping \ 13 | dnsutils \ 14 | fping \ 15 | gdb \ 16 | htop \ 17 | httpie \ 18 | iftop \ 19 | iperf \ 20 | ipset \ 21 | iptraf-ng \ 22 | iproute2 \ 23 | iputils-ping \ 24 | ipvsadm \ 25 | jq \ 26 | ldnsutils \ 27 | liboping-dev \ 28 | linux-tools-common \ 29 | mtr \ 30 | mycli \ 31 | mysql-client \ 32 | netcat \ 33 | netgen \ 34 | nftables \ 35 | ngrep \ 36 | nmap \ 37 | pgcli \ 38 | postgresql-client \ 39 | redis-tools \ 40 | scapy \ 41 | socat \ 42 | software-properties-common \ 43 | strace \ 44 | tcpdump \ 45 | tcptraceroute \ 46 | termshark \ 47 | tmux \ 48 | tshark \ 49 | unzip \ 50 | vim \ 51 | wuzz \ 52 | zip && \ 53 | apt-get clean && \ 54 | rm -rf /var/lib/apt/lists/* 55 | 56 | WORKDIR /usr/local/bin 57 | # Get sdkman (java version mgmt.) 58 | RUN curl -s https://get.sdkman.io | bash && \ 59 | bash -c "source /root/.sdkman/bin/sdkman-init.sh && \ 60 | sdk install java $JAVA_VERSION && \ 61 | sdk default java $JAVA_VERSION && \ 62 | sdk install visualvm $VISUALVM_VERSION && \ 63 | sdk default visualvm $VISUALVM_VERSION && \ 64 | sdk install maven $MAVEN_VERSION && \ 65 | sdk default maven $MAVEN_VERSION" && \ 66 | sdk install gradle && \ 67 | sdk install ant && \ 68 | # Get honest-profiler 69 | curl -L http://insightfullogic.com/honest-profiler.zip -o honest-profiler.zip && \ 70 | unzip honest-profiler.zip && \ 71 | rm honest-profiler.zip && \ 72 | mkdir honest-profiler && \ 73 | mv gui console honest-profiler.jar liblagent.so honest-profiler/ && \ 74 | # Get jmxterm (as jar package) 75 | curl -L https://github.com/jiaqi/jmxterm/releases/download/v1.0.2/jmxterm-1.0.2-uber.jar -o jmxterm.jar && \ 76 | echo "alias jmxterm='java -jar /usr/local/bin/jmxterm.jar'" >> /root/.bashrc && \ 77 | # Get jmxtrans 78 | curl -L https://github.com/jmxtrans/jmxtrans/archive/refs/tags/jmxtrans-parent-272.zip -o jmxtrans.zip && \ 79 | unzip jmxtrans.zip && \ 80 | rm jmxtrans.zip && \ 81 | echo "alias jmxtrans='/usr/local/bin/jmxtrans-jmxtrans-parent-272/jmxtrans/jmxtrans.sh'" >> /root/.bashrc && \ 82 | # Get async-profiler-arm64 83 | curl -L https://github.com/jvm-profiling-tools/async-profiler/releases/download/v2.6/async-profiler-2.6-linux-arm64.tar.gz -o async-profiler.tar.gz && \ 84 | tar -xzvf async-profiler.tar.gz && \ 85 | rm async-profiler.tar.gz && \ 86 | echo "alias async-profiler-arm64='/usr/local/bin/async-profiler-2.6-linux-arm64/profiler.sh'" >> /root/.bashrc && \ 87 | # Get async-profiler-x64 88 | curl -L https://github.com/jvm-profiling-tools/async-profiler/releases/download/v2.6/async-profiler-2.6-linux-x64.tar.gz -o async-profiler.tar.gz && \ 89 | tar -xzvf async-profiler.tar.gz && \ 90 | rm async-profiler.tar.gz && \ 91 | echo "alias async-profiler-x64='/usr/local/bin/async-profiler-2.6-linux-x64/profiler.sh'" >> /root/.bashrc && \ 92 | # Get calicoctl (inside the pod) 93 | curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o calicoctl && \ 94 | chmod +x calicoctl && \ 95 | # Get websocat (not available over apt) 96 | curl -L https://github.com/vi/websocat/releases/latest/download/websocat_linux64 -o websocat && \ 97 | chmod +x websocat && \ 98 | # Get mongo shell (not available over apt) 99 | curl -L https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-org-shell_5.0.5_amd64.deb -o mongodb-org-shell_5.0.5_amd64.deb && \ 100 | dpkg -i mongodb-org-shell_5.0.5_amd64.deb && \ 101 | rm mongodb-org-shell_5.0.5_amd64.deb 102 | 103 | CMD ["/bin/bash"] 104 | -------------------------------------------------------------------------------- /jvm/README.md: -------------------------------------------------------------------------------- 1 | ## JVM KoolKit 2 | 3 | 4 | 5 | KoolKits (**K**ubernetes t**oolkits**) are language-specific container images, that contain a (highly-opinionated) set of tools for debugging applications running in Kubernetes pods. You can read more about KoolKits [here](../README.md) or learn about the motivation behind this project [here](#Motivation). 6 | 7 | Using the JVM KoolKit you can use `async-profiler`,`jmxterm` or VisualVM with any JVM running inside your Kubernetes pods, without any extra configuration or setup. 8 | 9 | To get started, first add the shorthand `kk` command to your shell by pasting the following snippet into your shell: 10 | 11 | ```bash 12 | echo "## KoolKits - Shorthand 13 | kk() { 14 | kubectl debug -it $1 --image=lightruncom/koolkits:$2 --image-pull-policy=Never --target=$3 15 | }" >> ~/.bashrc 16 | source ~/.bashrc 17 | ``` 18 | 19 | Then run the JVM KoolKit with your pod: 20 | 21 | ```bash 22 | kk jvm 23 | ``` 24 | 25 | The JVM KoolKit contains the following Java utilities (available on `$PATH` wherever applicable): 26 | 27 | * [`sdk`](https://sdkman.io/) - SDKMAN!, A JVM version manager (and extras!) with [Adoptium Temurin (AdoptOpenJDK) 17.0.2](https://adoptium.net/?variant=openjdk17&jvmVariant=hotspot) - installed as the default JDK. 28 | * [`jmxterm`](https://github.com/jiaqi/jmxterm) - Interactive command-line JMX client. 29 | * [`honest-profiler`](https://github.com/jvm-profiling-tools/honest-profiler) - A sampling JVM profiler without the safepoint sample bias. 30 | * [`jmxtrans`](https://github.com/jmxtrans/jmxtrans) - The missing connector between speaking to a JVM via JMX on one end and whatever logging / monitoring / graphing package that you can dream up on the other end. 31 | * [`async-profiler`](https://github.com/jvm-profiling-tools/async-profiler) - Sampling CPU and HEAP profiler for Java featuring `AsyncGetCallTrace` + `perf_events`. 32 | * [`VisualVM`](https://visualvm.github.io/) (CLI) - A profiler that bundles up a combination of JDK command line tools. 33 | * [`Maven`](https://maven.apache.org/index.html) - The default build tool for the JVM world. 34 | 35 | In addition, it contains the following utilities on top of the official [`ubuntu:20.04` image](https://hub.docker.com/layers/ubuntu/library/ubuntu/20.04/images/sha256-7c9c7fed23def3653a0da5bc9ecb651efe155ebd5802c7ba5d585edaa6c89496?context=explore): 36 | 37 | ```text 38 | bird 39 | calicoctl 40 | conntrack 41 | ctop 42 | curl 43 | dhcping 44 | dnsutils 45 | fping 46 | gdb 47 | htop 48 | httpie 49 | iftop 50 | iperf 51 | ipset 52 | iptraf-ng 53 | iproute2 54 | iputils-ping 55 | ipvsadm 56 | jq 57 | ldnsutils 58 | liboping-dev 59 | linux-tools-common 60 | maven 61 | mongo 62 | mtr 63 | mycli 64 | mysql-client 65 | netcat 66 | netgen 67 | nftables 68 | ngrep 69 | nmap 70 | pgcli 71 | postgresql-client 72 | redis-tools 73 | scapy 74 | socat 75 | software-properties-common 76 | strace 77 | tcpdump 78 | tcptraceroute 79 | termshark 80 | tmux 81 | tshark 82 | unzip 83 | vim 84 | websocat 85 | wuzz 86 | zip 87 | ``` -------------------------------------------------------------------------------- /jvm/java-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightrun-platform/koolkits/09d36347799cf556517083236a94f4b512ef6242/jvm/java-logo.png -------------------------------------------------------------------------------- /nodejs/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | ENV NODE_VERSION=16.13.1 3 | ARG DEBIAN_FRONTEND=noninteractive 4 | 5 | RUN apt-get update && \ 6 | apt-get install --yes --no-install-recommends --quiet \ 7 | bird \ 8 | conntrack \ 9 | ctop \ 10 | curl \ 11 | dhcping \ 12 | dnsutils \ 13 | fping \ 14 | gdb \ 15 | git \ 16 | htop \ 17 | httpie \ 18 | iftop \ 19 | iperf \ 20 | ipset \ 21 | iptraf-ng \ 22 | iproute2 \ 23 | iputils-ping \ 24 | ipvsadm \ 25 | jq \ 26 | ldnsutils \ 27 | liboping-dev \ 28 | linux-tools-common \ 29 | mtr \ 30 | mycli \ 31 | mysql-client \ 32 | netcat \ 33 | netgen \ 34 | nftables \ 35 | ngrep \ 36 | nmap \ 37 | pgcli \ 38 | postgresql-client \ 39 | redis-tools \ 40 | scapy \ 41 | socat \ 42 | software-properties-common \ 43 | strace \ 44 | tcpdump \ 45 | tcptraceroute \ 46 | termshark \ 47 | tmux \ 48 | tshark \ 49 | vim \ 50 | wuzz && \ 51 | apt-get clean && \ 52 | rm -rf /var/lib/apt/lists/* 53 | 54 | # Install node and relevant tools 55 | WORKDIR /usr/local/bin 56 | RUN apt-get update && apt-get install -y curl && cd /usr/local/bin && \ 57 | curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && \ 58 | . /root/.nvm/nvm.sh && \ 59 | export NODE_VERSION=16.13.1 && \ 60 | # Set up node and global npm packages 61 | nvm install $NODE_VERSION && \ 62 | nvm alias default $NODE_VERSION && \ 63 | nvm use default && \ 64 | npm --install prefix "usr/local/bin" && \ 65 | npm install ndb 0x whistle vtop && \ 66 | # Get everything on path instead of installing globally 67 | echo "alias ndb='/usr/local/bin/node_modules/.bin/ndb'" >> /root/.bashrc && \ 68 | echo "alias 0x='/usr/local/bin/node_modules/.bin/0x'" >> /root/.bashrc && \ 69 | echo "alias whistle='/usr/local/bin/node_modules/.bin/whistle'" >> /root/.bashrc && \ 70 | echo "alias vtop='/usr/local/bin/node_modules/.bin/vtop'" >> /root/.bashrc && \ 71 | # Get calicoctl (inside the pod) 72 | curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o calicoctl && \ 73 | chmod +x calicoctl && \ 74 | # Get websocat (not available over apt) 75 | curl -L https://github.com/vi/websocat/releases/latest/download/websocat_linux64 -o websocat && \ 76 | chmod +x websocat && \ 77 | # Get mongo shell (not available over apt) 78 | curl -L https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-org-shell_5.0.5_amd64.deb -o mongodb-org-shell_5.0.5_amd64.deb && \ 79 | dpkg -i mongodb-org-shell_5.0.5_amd64.deb && \ 80 | rm mongodb-org-shell_5.0.5_amd64.deb 81 | 82 | CMD ["/bin/bash"] 83 | 84 | -------------------------------------------------------------------------------- /nodejs/README.md: -------------------------------------------------------------------------------- 1 | ## Node.js KoolKit 2 | 3 | 4 | 5 | KoolKits (**K**ubernetes t**oolkits**) are language-specific container images, that contain a (highly-opinionated) set of tools for debugging applications running in Kubernetes pods. You can read more about KoolKits [here](../README.md) or learn about the motivation behind this project [here](#Motivation). 6 | 7 | Using the Node.js KoolKit you can spin up `0x` for fancy flamegraphs or `ndb` for debugging your app your Kubernetes pods without any configuration or extra setup. 8 | 9 | To get started, first add the shorthand `kk` command to your shell by pasting the following snippet into your shell: 10 | 11 | ```bash 12 | echo "## KoolKits - Shorthand 13 | kk() { 14 | kubectl debug -it $1 --image=lightruncom/koolkits:$2 --image-pull-policy=Never --target=$3 15 | }" >> ~/.bashrc 16 | source ~/.bashrc 17 | ``` 18 | 19 | Then run the Node.js KoolKit with your pod: 20 | 21 | ```bash 22 | kk node 23 | ``` 24 | 25 | The Node.js KoolKit contains the following Node utilities (available on `$PATH` wherever applicable): 26 | 27 | * [`nvm`](https://github.com/nvm-sh/nvm) - A Node version manager, with [Node 16.13.2](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.13.2) installed as the default Node version. 28 | * [`ndb`](https://github.com/GoogleChromeLabs/ndb) - An improved debugging experience for Node.js, enabled by Chrome DevTools. 29 | * [`0x`](https://github.com/davidmarkclements/0x) - Single-command flamegraph profiling. 30 | * [`vtop`](https://github.com/MrRio/vtop) - A graphical activity monitor for the command line. `top`, but better. 31 | * [`whistle`](https://github.com/avwo/whistle) - A cross-platform web debugging tool based on Node.js (mostly a debugging proxy). 32 | 33 | In addition, it contains the following utilities on top of the official [`ubuntu:20.04` image](https://hub.docker.com/layers/ubuntu/library/ubuntu/20.04/images/sha256-7c9c7fed23def3653a0da5bc9ecb651efe155ebd5802c7ba5d585edaa6c89496?context=explore): 34 | 35 | ``` 36 | bird 37 | conntrack 38 | calicoctl 39 | ctop 40 | curl 41 | dhcping 42 | dnsutils 43 | fping 44 | gdb 45 | git 46 | htop 47 | httpie 48 | iftop 49 | iperf 50 | ipset 51 | iptraf-ng 52 | iproute2 53 | iputils-ping 54 | ipvsadm 55 | jq 56 | ldnsutils 57 | liboping-dev 58 | linux-tools-common 59 | mongo 60 | mtr 61 | mycli 62 | mysql-client 63 | netcat 64 | netgen 65 | nftables 66 | ngrep 67 | nmap 68 | pgcli 69 | postgresql-client 70 | redis-tools 71 | scapy 72 | socat 73 | software-properties-common 74 | strace 75 | tcpdump 76 | tcptraceroute 77 | termshark 78 | tmux 79 | tshark 80 | vim 81 | websocat 82 | wuzz 83 | ``` 84 | -------------------------------------------------------------------------------- /nodejs/node-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightrun-platform/koolkits/09d36347799cf556517083236a94f4b512ef6242/nodejs/node-logo.png -------------------------------------------------------------------------------- /python/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | ENV PYTHON_VERSION=3.10.2 3 | ENV DEBIAN_FRONTEND=noninteractive 4 | 5 | RUN apt-get update && \ 6 | apt-get install --yes --no-install-recommends --quiet \ 7 | bird \ 8 | build-essential \ 9 | ca-certificates \ 10 | conntrack \ 11 | ctop \ 12 | curl \ 13 | dhcping \ 14 | dnsutils \ 15 | fping \ 16 | gdb \ 17 | git \ 18 | htop \ 19 | httpie \ 20 | iftop \ 21 | iperf \ 22 | iproute2 \ 23 | ipset \ 24 | iptraf-ng \ 25 | iputils-ping \ 26 | ipvsadm \ 27 | jq \ 28 | ldnsutils \ 29 | libbz2-dev \ 30 | libedit-dev \ 31 | libffi-dev \ 32 | liblzma-dev \ 33 | libncursesw5-dev \ 34 | liboping-dev \ 35 | libreadline-dev \ 36 | libsqlite3-dev \ 37 | libssl-dev \ 38 | libxml2-dev \ 39 | libxmlsec1-dev \ 40 | linux-tools-common \ 41 | llvm \ 42 | mtr \ 43 | mycli \ 44 | mysql-client \ 45 | netcat \ 46 | netgen \ 47 | nftables \ 48 | ngrep \ 49 | nmap \ 50 | pgcli \ 51 | postgresql-client \ 52 | redis-tools \ 53 | scapy \ 54 | socat \ 55 | software-properties-common \ 56 | strace \ 57 | tcpdump \ 58 | tcptraceroute \ 59 | termshark \ 60 | tk-dev \ 61 | tmux \ 62 | tshark \ 63 | unzip \ 64 | vim \ 65 | wget \ 66 | wuzz \ 67 | xz-utils \ 68 | zip \ 69 | zlib1g-dev && \ 70 | apt-get clean && \ 71 | rm -rf /var/lib/apt/lists/* 72 | 73 | WORKDIR /usr/local/bin 74 | # Get pyenv (Python version swapping) 75 | RUN curl https://pyenv.run | bash && \ 76 | echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> /root/.bashrc && \ 77 | echo 'eval "$(pyenv init --path)"' >> /root/.bashrc && \ 78 | echo 'eval "$(pyenv virtualenv-init -)"' >> /root/.bashrc && \ 79 | . /root/.bashrc && \ 80 | pyenv install ${PYTHON_VERSION} && \ 81 | pyenv global ${PYTHON_VERSION} && \ 82 | pip install \ 83 | ipdb \ 84 | ipython \ 85 | line_profiler \ 86 | lptrace \ 87 | memory_profiler \ 88 | pdbpp \ 89 | pudb \ 90 | pyinstrument \ 91 | scalene \ 92 | vprof && \ 93 | # pip in bash doesn't play nicely with package names with dashes 94 | pip install py-heat-magic py-spy && \ 95 | # Get calicoctl (inside the pod) 96 | curl -L https://github.com/projectcalico/calico/releases/latest/download/calicoctl-linux-amd64 -o calicoctl && \ 97 | chmod +x calicoctl && \ 98 | # Get websocat (not available over apt) 99 | curl -L https://github.com/vi/websocat/releases/latest/download/websocat_linux64 -o websocat && \ 100 | chmod +x websocat && \ 101 | # Get mongo shell (not available over apt) 102 | curl -L https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-org-shell_5.0.5_amd64.deb -o mongodb-org-shell_5.0.5_amd64.deb && \ 103 | dpkg -i mongodb-org-shell_5.0.5_amd64.deb && \ 104 | rm mongodb-org-shell_5.0.5_amd64.deb 105 | 106 | CMD ["/bin/bash"] 107 | -------------------------------------------------------------------------------- /python/README.md: -------------------------------------------------------------------------------- 1 | ## Python KoolKit 2 | 3 | 4 | 5 | KoolKits (**K**ubernetes t**oolkits**) are language-specific container images, that contain a (highly-opinionated) set of tools for debugging applications running in Kubernetes pods. You can read more about KoolKits [here](../README.md) or learn about the motivation behind this project [here](#Motivation). 6 | 7 | Using the Python KoolKit you can spin up a `IPython` or a memory profiler your Kubernetes pods without any configuration or extra setup. 8 | 9 | To get started, first add the shorthand `kk` command to your shell by pasting the following snippet into your shell: 10 | 11 | ```bash 12 | echo "## KoolKits - Shorthand 13 | kk() { 14 | kubectl debug -it $1 --image=lightruncom/koolkits:$2 --image-pull-policy=Never --target=$3 15 | }" >> ~/.bashrc 16 | source ~/.bashrc 17 | ``` 18 | 19 | Then run the python KoolKit with your pod: 20 | 21 | ```bash 22 | kk python 23 | ``` 24 | 25 | The Python KoolKit contains the following Python utilities (available on `$PATH` wherever applicable): 26 | 27 | * [`pyenv`](https://github.com/pyenv/pyenv) - A Python version manager with [Python 3.10.2](https://www.python.org/downloads/release/python-3102/) installed as the default Python version. 28 | * [`ipdb`](https://github.com/gotcha/ipdb) - An interactive debugger with `pdb`'s functionality and `ipython` support. 29 | * [`ipython`](https://ipython.org/) - A powerful, interactive Python command shell. 30 | * [`line_profiler`](https://github.com/pyutils/line_profiler) - Line-by-line profiling for Python. 31 | * [`lptrace`](https://github.com/khamidou/lptrace) - Trace any Python program, anywhere! 32 | * [`memory_profiler`](https://github.com/pythonprofilers/memory_profiler) - Monitor Memory usage of Python code. 33 | * [`pdbpp`](https://github.com/pdbpp/pdbpp) - A drop-in replacement for `pdb`. 34 | * [`pudb`](https://github.com/inducer/pudb) - A full-screen console debugger for Python. 35 | * [`pyinstrument`](https://github.com/joerick/pyinstrument) - Call stack profiler for Python. 36 | * [`scalene`](https://github.com/plasma-umass/scalene) - A high-performance, high-precision CPU, GPU, and memory profiler for Python. 37 | * [`vprof`](https://github.com/nvdv/vprof) - A visual profiler for Python. 38 | * [`py-heat-magic`](https://github.com/csurfer/pyheatmagic) - IPython magic command to profile and view your python code as a heat map. 39 | * [`py-spy`](https://github.com/benfred/py-spy) - A sampling profiler for Python programs. 40 | 41 | In addition, it contains the following utilities on top of the official [`ubuntu:20.04` image](https://hub.docker.com/layers/ubuntu/library/ubuntu/20.04/images/sha256-7c9c7fed23def3653a0da5bc9ecb651efe155ebd5802c7ba5d585edaa6c89496?context=explore): 42 | 43 | ```text 44 | bird 45 | build-essential 46 | ca-certificates 47 | calicoctl 48 | conntrack 49 | ctop 50 | curl 51 | dhcping 52 | dnsutils 53 | fping 54 | gdb 55 | git 56 | htop 57 | httpie 58 | iftop 59 | iperf 60 | iproute2 61 | ipset 62 | iptraf-ng 63 | iputils-ping 64 | ipvsadm 65 | jq 66 | ldnsutils 67 | libbz2-dev 68 | libedit-dev 69 | libffi-dev 70 | liblzma-dev 71 | libncursesw5-dev 72 | liboping-dev 73 | libreadline-dev 74 | libsqlite3-dev 75 | libssl-dev 76 | libxml2-dev 77 | libxmlsec1-dev 78 | linux-tools-common 79 | llvm 80 | mongo 81 | mtr 82 | mycli 83 | mysql-client 84 | netcat 85 | netgen 86 | nftables 87 | ngrep 88 | nmap 89 | pgcli 90 | postgresql-client 91 | redis-tools 92 | scapy 93 | socat 94 | software-properties-common 95 | strace 96 | tcpdump 97 | tcptraceroute 98 | termshark 99 | tk-dev 100 | tmux 101 | tshark 102 | unzip 103 | vim 104 | websocat 105 | wget 106 | wuzz 107 | xz-utils 108 | zip 109 | zlib1g-dev 110 | ``` -------------------------------------------------------------------------------- /python/python-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightrun-platform/koolkits/09d36347799cf556517083236a94f4b512ef6242/python/python-logo.png --------------------------------------------------------------------------------