update podman rootless gitea docs
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 53s
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 53s
This commit is contained in:
@@ -44,22 +44,13 @@
|
||||
|
||||
```bash
|
||||
useradd gitea
|
||||
|
||||
su - gitea
|
||||
ssh-keygen
|
||||
exit
|
||||
cp ~/.ssh/authorized_keys /home/gitea/.ssh/authorized_keys
|
||||
chown gitea:gitea /home/gitea/.ssh/authorized_keys
|
||||
loginctl enable-linger $(id -u gitea)
|
||||
```
|
||||
|
||||
SSH into the server as gitea
|
||||
|
||||
```bash
|
||||
systemctl --user enable podman-restart
|
||||
systemctl --user enable --now podman.socket
|
||||
mkdir -p ~/.config/containers/systemd
|
||||
systemctl --user --machine=gitea@.host enable podman-restart
|
||||
systemctl --user --machine=gitea@.host enable --now podman.socket
|
||||
su -l gitea
|
||||
mkdir -p .config/containers/systemd
|
||||
mkdir data config postgres
|
||||
exit
|
||||
```
|
||||
|
||||
### Convert Compose to Quadlet
|
||||
@@ -94,17 +85,21 @@ podman unshare
|
||||
|
||||
# Create the volumes
|
||||
mkdir gitea_data
|
||||
chown -R 1000:1000 gitea_data
|
||||
mkdir gitea_etc
|
||||
chown -R 1000:1000 gitea_etc
|
||||
exit
|
||||
```
|
||||
|
||||
Now launch the service. The first user you register will be the admin.
|
||||
|
||||
```bash
|
||||
ssh gitea systemctl --user daemon-reload
|
||||
ssh gitea systemctl --user restart gitea postgres
|
||||
# Create a systemctl viable shell
|
||||
machinectl shell gitea@
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user restart gitea postgres
|
||||
# Enables auto-update service which will pull new container images automatically every day
|
||||
ssh gitea systemctl --user enable --now podman-auto-update.timer
|
||||
systemctl --user enable --now podman-auto-update.timer
|
||||
```
|
||||
|
||||
### Upgrade Quadlets
|
||||
|
||||
Reference in New Issue
Block a user