-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# Docker container | ||
## Build | ||
- in root directory: | ||
``` | ||
podman build . -f docker/Dockerfile --tag astrid | ||
``` | ||
|
||
## Run | ||
``` | ||
podman run --rm --name astrid --volume "./config:/home/astrid/.astrid" --volume "./ssh:/home/astrid/.ssh" -p 8080:8080 astrid | ||
``` | ||
## Vývoj | ||
- nutnost: nainstalovaný `docker` a `docker-compose-plugin` | ||
- vytvoření aktuální image: `docker compose build` (potřeba spustit před prvním spuštěním) | ||
- vytvoření mount složek (případný `chown` pro vlastnění správným uživatelem): `mkdir config containers repos ssh` | ||
- spuštění: `docker compose up` | ||
- spouštění příkazů uvnitř dockeru: `docker exec -it astrid <příkaz>` | ||
- stáhnutí `fykosak/buildtools` (potřeba před prvním buildem repozitáře): `docker exec -it astrid podman pull docker.io/fykosak/buildtools` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3' | ||
|
||
services: | ||
astrid: | ||
image: ghcr.io/fykosak/astrid:master | ||
restart: on-failure:3 | ||
container_name: astrid | ||
environment: | ||
TZ: 'Europe/Prague' | ||
privileged: true # needed for containers | ||
volumes: | ||
- ./config:/home/astrid/.astrid | ||
- ./ssh:/home/astrid/.ssh | ||
- ./containers:/home/astrid/.local/share/containers | ||
- ./repos:/data/repos | ||
user: 1000:1000 # expects the main user with uid:pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cp -n /data/config.ini.sample /home/astrid/.astrid/config.ini | ||
cp -n /data/repos.ini.sample /home/astrid/.astrid/repos.ini | ||
cp -n /app/config.ini.sample /app/config/config.ini | ||
cp -n /app/repos.ini.sample /app/config/repos.ini | ||
|
||
python3 -u ./main |
This file was deleted.
Oops, something went wrong.