https://github.com/hirbodbehnam/dmux
dmux manages docker containers which I use
https://github.com/hirbodbehnam/dmux
docker
Last synced: over 1 year ago
JSON representation
dmux manages docker containers which I use
- Host: GitHub
- URL: https://github.com/hirbodbehnam/dmux
- Owner: HirbodBehnam
- License: mit
- Created: 2024-05-02T16:44:45.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-04T11:35:03.000Z (over 1 year ago)
- Last Synced: 2025-03-22T06:31:39.801Z (over 1 year ago)
- Topics: docker
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dmux
Manage your docker containers.
## What?
dmux or Docker MUltiplXer is a script that managers docker containers which are intended for compiling software.
It works by starting a docker container with current directory mounted as the working directory of docker and giving
you a bash shell inside the container. With this, you can simply execute commands which are intended for compiling the software in the docker, isolated from your host.
## How?
It simply works by running `docker run bash` with a container name and current directory mounted as working directory.
For example, one can use these commands to compile a rust program.
```
root@crow:~# git clone https://github.com/HirbodBehnam/lossy_link
root@crow:~# cd lossy_link/
root@crow:~/lossy_link# dmux c rust
root@dmux-rust:/workdir# cargo build --release
root@dmux-rust:/workdir# file target/release/lossy_link
target/release/lossy_link: ELF 64-bit LSB pie executable, ARM aarch64, ...
root@dmux-rust:/workdir# exit
root@crow:~/lossy_link# file target/release/lossy_link
target/release/lossy_link: ELF 64-bit LSB pie executable, ARM aarch64, ...
```
## Installing
Just copy the script to somewhere in your path and make it executable.
```bash
curl -L -o /usr/local/bin/dmux https://github.com/HirbodBehnam/dmux/raw/master/dmux.sh
chmod +x /usr/local/bin/dmux
dmux
```