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

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; -*-