Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redthing1/mim
integrated mini-linux in podman. inspired by distrobox.
https://github.com/redthing1/mim
Last synced: about 2 months ago
JSON representation
integrated mini-linux in podman. inspired by distrobox.
- Host: GitHub
- URL: https://github.com/redthing1/mim
- Owner: redthing1
- Created: 2023-08-17T07:50:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-11T19:53:28.000Z (4 months ago)
- Last Synced: 2024-09-12T06:03:09.283Z (4 months ago)
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mim
well-integrated **mini-machines**; a portable linux that has all your data dirs mounted. inspired by [distrobox](https://github.com/89luca89/distrobox) and powered by podman.
## what it's about
sometimes, i want a linux terminal development environment on macos, and i want all my data magically linked in. so that i can cd to a source directory and seamlessly build it.
with the power of containers, we can do just that. we run a linux userspace of our choice (fully customizable by a dockerfile), and mount in all our directories.
mim makes the above super easy. just build a machine image, create a container, then run `mim shell` and you're in!
## setup
### linux
should be all good to go
### macos
ensure podman machine is initialized as such:
```sh
podman machine init --volume /Users --volume /Volumes
podman machine stop && ulimit -n unlimited && podman machine start
```## usage
### build a mimchine image
```sh
mim build -f ./demo/mim_fed.docker -n mim_fed
```### create a mimchine
```sh
mim create -n mim_fed -H ~/Downloads
```### open a shell in a mimchine
```sh
mim shell -c mim_fed
```### destroy a mimchine
```sh
mim destroy -c mim_fed -f
```