Files
spinny/README.md
2026-01-29 22:37:14 +11:00

62 lines
879 B
Markdown

# Spinny
Spinny runs containers for you.
## Installing
Make sure to install `podman` first.
Compile:
```
g++ main.cpp -o spinny
```
Install:
```
sudo cp spinny /usr/local/bin/spinny
```
Make a user to run Spinny under:
```
sudo useradd -m spinny
sudo passwd spinny
```
Start the SSH daemon (if you haven't)
```
sudo systemctl enable --now sshd
```
(Optional) Set up SSH keys to use with the `spinny` user.
Build the containter used by Spinny:
```
ssh spinny@localhost
git clone https://chookspace.com/max/container
cd container
podman build -t dev-container .
podman run -it --rm dev-container
exit
```
Add /usr/local/bin/spinny to /etc/shells (use your editor)
Change the `spinny` user's shell to `/usr/local/bin/spinny`:
```
sudo chsh -s /usr/local/bin/spinny spinny
```
Enjoy!
```
ssh spinny@localhost
```
Run the `help` command to see avaliable commands.