From 1834aab36ecea6d88ca9e85f445d727a483f1e92 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 20 Sep 2024 12:19:12 -0300 Subject: [PATCH] add docker-reset with the usual operations to restart everything --- docker-reset.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 docker-reset.sh diff --git a/docker-reset.sh b/docker-reset.sh new file mode 100755 index 0000000..b6fc7ce --- /dev/null +++ b/docker-reset.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Copyright (c) 2024 Pedro +# 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; -*-