add docker-reset

with the usual operations to restart everything
This commit is contained in:
pedro 2024-09-20 12:19:12 -03:00
parent fa59feaf77
commit 1834aab36e
1 changed files with 22 additions and 0 deletions

22
docker-reset.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
# Copyright (c) 2024 Pedro <copyright@cas.cat>
# SPDX-License-Identifier: AGPL-3.0-or-later
set -e
set -u
# DEBUG
#set -x
main() {
# remove old database
sudo rm -v db/*
docker compose down
docker compose build
docker compose up
}
main "${@}"
# written in emacs
# -*- mode: shell-script; -*-