https://github.com/jterrazz/42-docker-devstation
๐งจ Supercharge your setup with the best development and debugging packages.
https://github.com/jterrazz/42-docker-devstation
Last synced: about 1 month ago
JSON representation
๐งจ Supercharge your setup with the best development and debugging packages.
- Host: GitHub
- URL: https://github.com/jterrazz/42-docker-devstation
- Owner: jterrazz
- Created: 2019-10-21T17:07:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-05T22:28:09.000Z (over 1 year ago)
- Last Synced: 2025-05-08T03:02:32.372Z (9 months ago)
- Language: Dockerfile
- Homepage:
- Size: 12.7 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
*Hey there โ Iโm Jean-Baptiste, just another developer doing weird things with code. All my projects live on [jterrazz.com](https://jterrazz.com) โ complete with backstories and lessons learned. Feel free to poke around โ you might just find something useful!*
# 42 Docker Devstation
Docker dev toolbox preloaded with debugging essentials.
*As long as you have access to docker, this repo will allow you to run / install **any linux packages** with **root privileges**. All that in your usual terminal (mac, windows, linux) without much impact on performances.*
*Many debug / security packages are included (`radare2`, `gdb`, `john`, `tshark`, etc). But feel free to fork to add your own packages ๐ค .*
## Usage
```bash
./start
```
### Access it from everywhere
1. Add in your `.zshrc`
```bash
SHARED_FOLDER="~"
alias devstation="\
docker run \
--cap-drop=ALL \
--cap-add=SYS_PTRACE \
--privileged \
--security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
--rm \
-it -v ${SHARED_FOLDER}:/root/shared jterrazz/devstation zsh
"
```
2. Restart your terminal or type `source ~/.zshrc`
3. Enjoy ๐
```bash
devstation # Start the machine
```
### Build locally
```bash
./build.sh
```
#### Add your own packages
Packages installed during runtime are not saved. You can add permanent packages in the `Dockerfile`. You will have to build the new image after that.
#### Docker shortcuts
```bash
# Stop all processes
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
```