(add): Some automated packaging.

This commit is contained in:
2026-01-22 23:30:41 -05:00
parent 0279ce7078
commit 2738ac6e89
10 changed files with 62 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
source ../common.sh
tam3_version="0.3.0"
mkdir -p ~/.config/TAM3/data

View File

@@ -0,0 +1,10 @@
read -p "Enter the key that you want to delete: " apikey
if [ -x "$(command -v docker)" ]; then
docker compose exec tam3-api /app/key.py delete $apikey
elif [ -x "$(command -v podman)" ]; then
podman compose exec tam3-api /app/key.py delete $apikey
else
echo "Neither Docker nor Podman are installed. Please install whichever you prefer, then try again."
exit 1
fi

View File

@@ -0,0 +1,16 @@
#!/bin/bash
source ../common.sh
if [ -x "$(command -v docker)" ]; then
docker save dbob16/tam3-api:${tam3_version} | gzip > tam3-api.tar.gz
docker save dbob16/tam3-db:${tam3_version} | gzip > tam3-db.tar.gz
elif [ -x "$(command -v podman)" ]; then
podman save dbob16/tam3-api:${tam3_version} | gzip > tam3-api.tar.gz
podman save dbob16/tam3-db:${tam3_version} | gzip > tam3-db.tar.gz
else
echo "Neither Docker nor Podman are installed. Please install whichever you prefer and try again."
exit 1
fi
tar -cvzf tam3-server-offline-images_${tam3_version}.tar.gz tam3-api.tar.gz tam3-db.tar.gz server-load.sh

View File

@@ -0,0 +1,10 @@
read -p "Enter the key that you want to delete: " apikey
if [ -x "$(command -v docker)" ]; then
docker compose exec tam3-api /app/key.py delete $apikey
elif [ -x "$(command -v podman)" ]; then
podman compose exec tam3-api /app/key.py delete $apikey
else
echo "Neither Docker nor Podman are installed. Please install whichever you prefer, then try again."
exit 1
fi