Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Prefix podman commands with sudo for now (#125)
Browse files Browse the repository at this point in the history
Currently the Gevulot container is spawned from `root` when launched
by systemd. In Podman, container registries are per-user by default so
when pulling the latest version of container, the further container
operations must be done using the same user account as well. This is
especially important when there are critical changes in the container
such as database migrations. Therefore podman commands here should be
prefixed with `sudo` in order to match the correct container catalog.
  • Loading branch information
tuommaki authored Mar 7, 2024
1 parent dbd6020 commit ef927a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Volume=/var/lib/postgresql/data:/var/lib/postgresql/data:z

In order to create initial tables or perform latest migrations, run:
```
podman run -it --network=host quay.io/gevulot/node:latest migrate [--db-url=postgres://<username>:<password>@<dbhost>/gevulot]
sudo podman run -it --network=host quay.io/gevulot/node:latest migrate [--db-url=postgres://<username>:<password>@<dbhost>/gevulot]
```

## Gevulot networking
Expand All @@ -176,7 +176,7 @@ If Gevulot node is behind NAT, one must configure the public address that extern
Gevulot help

```
podman run -it quay.io/gevulot/node:latest run -h
sudo podman run -it quay.io/gevulot/node:latest run -h
```

...displays all possible configuration directives. When running the node as a systemd unit, an environment variable based configuration is preferred for easy configuration management.
Expand All @@ -193,7 +193,7 @@ This guide uses `/var/lib/gevulot`, which is also the default, but it is configu

Each Gevulot node requires a keypair for operation. It can be generated with Gevulot node container:
```
podman run -it -v /var/lib/gevulot:/var/lib/gevulot:z quay.io/gevulot/node:latest generate key
sudo podman run -it -v /var/lib/gevulot:/var/lib/gevulot:z quay.io/gevulot/node:latest generate key
```

## Gevulot node systemd unit
Expand Down

0 comments on commit ef927a3

Please sign in to comment.