Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirbodbehnam/dmux
dmux manages docker containers which I use
https://github.com/hirbodbehnam/dmux
docker
Last synced: 14 days 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 (6 months ago)
- Default Branch: master
- Last Pushed: 2024-09-06T16:40:36.000Z (2 months ago)
- Last Synced: 2024-09-06T19:52:35.455Z (2 months ago)
- Topics: docker
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- 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 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
```