Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clairify some docker commands #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,34 @@ As of this writing - it doesn't do anything to properly setup database or `makei
(I think it will run a developer-staging setup as-is). This means you need to restore and load
databases and `makeit.ini` from backups to work in production

Add a persistant volume to docker like:
`docker run --rm -it -v authitdata_devel:/opt/authit`

Set up a Persistant Volume like:
`docker volume create authitdata_devel`

Then inspect persitant volume to find out where it's path is on your filesystem. Place the `makeit.ini`, `db` and `logdb` files in the persistent volume
Add a persistant volume to docker like:
`docker run --rm -it -v authitdata_devel:/opt/authit authbackend`

Then inspect the persitant volume:

```
$ docker volume inspect authitdata_devel
[
{
"CreatedAt": "2024-01-25T01:07:12Z",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/authitdata_devel/_data",
"Name": "authitdata_devel",
"Options": null,
"Scope": "local"
}
]
```

The `Mountpoint` key is the location of the volume on the host system. Then copy:

* makeit.ini.example -> ${VOLUME}/makeit.ini
* ??? -> ${VOLUME}/db
* ??? -> ${VOLUME}/logdb

Modify the `makeit.ini` file to point to the aforemented databases. Note that the Persitant Volume will mount to `/opt/makeit` - so make sure that is the "root" of the path you use - i.e. `/opt/makeit/db.sq3`

Expand Down