Skip to content
This repository was archived by the owner on Mar 30, 2024. It is now read-only.

docs: make docker image version parametric #12

Merged
merged 4 commits into from
Nov 9, 2023
Merged
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
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ You can then reach MIRA using your web brower at [http://127.0.0.1:8000/](http:/
2. Build the image with an appropriate tag (e.g. *mira:[version](mira/VERSION)*), for example:

```sh
docker build . -t mira:3.0.2
docker build . -t mira:$(<mira/VERSION)
```

3. Once this is done, you can simply start-up MIRA by running:

```sh
docker run --rm -it --env CREATE_SUPERUSER=true -p 8000:8000 -v ./db:/code/db mira:3.0.2
docker run --rm -it --env CREATE_SUPERUSER=true -p 8000:8000 -v ./db:/code/db mira:$(<mira/VERSION)
```
When asked for, enter your email and password for your superuser.

Expand All @@ -111,7 +111,7 @@ You can then reach MIRA using your web brower at [http://127.0.0.1:8000/](http:/
For the following executions, simply run:

```sh
docker run --rm -p 8000:8000 -v ./db:/code/db mira:3.0.2
docker run --rm -p 8000:8000 -v ./db:/code/db mira:$(<mira/VERSION)
```

⚠️ *WARNING*: If you're using WSL you'll need to activate *Systemd*. Check out this [topic](https://stackoverflow.com/questions/65400999/enable-systemd-in-wsl-2) to do it.
Expand Down Expand Up @@ -242,7 +242,7 @@ python manage.py compilemessages -i venv -l fr
python manage.py runserver
```

🆘 *HELP*: If you have the error `"unsupported locale setting"` when loading the `/calendar/` page, run:
🆘 *HELP*: If you have the error `"unsupported locale setting"` when loading the [calendar](http://127.0.0.1:8000/calendar/) page, run:

```sh
export LC_ALL="fr_FR.UTF-8" & export LC_CTYPE="fr_FR.UTF-8" & sudo dpkg-reconfigure locales
Expand Down