Initial commit
This commit is contained in:
61
README.md
Normal file
61
README.md
Normal file
@@ -0,0 +1,61 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user