2024-03-20 22:33:23 +01:00
|
|
|
@_default:
|
|
|
|
{{just_executable()}} -f {{justfile()}} --list
|
|
|
|
|
|
|
|
# Run the instance [aliases: r]
|
|
|
|
@run:
|
|
|
|
sudo docker-compose up -d
|
|
|
|
|
|
|
|
# Stop the instance [aliases: s]
|
|
|
|
@stop:
|
|
|
|
sudo docker-compose rm -f -s
|
|
|
|
|
2024-05-23 14:22:32 +02:00
|
|
|
# Pull the new patch and minor of Forgejo [aliases: u]
|
|
|
|
@update: stop && run
|
2024-03-20 22:33:23 +01:00
|
|
|
sudo docker rmi -f $(sudo docker images -q -f reference=codeberg.org/forgejo/forgejo)
|
|
|
|
|
|
|
|
# Restart the instance
|
|
|
|
@restart: stop run
|
|
|
|
|
|
|
|
# Create Backup file [aliases: b]
|
|
|
|
@backup backup_name: stop && run
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
FILES="forgejo forgejo-runner Justfile docker-compose.yml README.md"
|
|
|
|
7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -mhe=on -p {{backup_name}}.7z $FILES
|
|
|
|
echo "Backup done..."
|
|
|
|
|
|
|
|
|
|
|
|
[private]
|
|
|
|
alias r := run
|
|
|
|
[private]
|
|
|
|
alias s := stop
|
|
|
|
[private]
|
2024-05-23 14:22:32 +02:00
|
|
|
alias u := update
|
2024-03-20 22:33:23 +01:00
|
|
|
[private]
|
|
|
|
alias b := backup
|
|
|
|
|