(add): Some automated packaging.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
*/__pycache__/
|
*/__pycache__/
|
||||||
data/
|
data/
|
||||||
|
build.sh
|
||||||
|
|||||||
6
api/build.sh
Executable file
6
api/build.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source ../deployment/common.sh
|
||||||
|
|
||||||
|
docker build -t dbob16/tam3-api:${tam3_version} .
|
||||||
|
docker tag dbob16/tam3-api:${tam3_version} dbob16/tam3-api:latest
|
||||||
1
db/.dockerignore
Normal file
1
db/.dockerignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
build.sh
|
||||||
6
db/build.sh
Executable file
6
db/build.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source ../deployment/common.sh
|
||||||
|
|
||||||
|
docker build -t dbob16/tam3-db:${tam3_version} .
|
||||||
|
docker tag dbob16/tam3-db:${tam3_version} dbob16/tam3-db:latest
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source ../common.sh
|
tam3_version="0.3.0"
|
||||||
|
|
||||||
mkdir -p ~/.config/TAM3/data
|
mkdir -p ~/.config/TAM3/data
|
||||||
|
|
||||||
|
|||||||
10
deployment/remote_server/delete-key.sh
Executable file
10
deployment/remote_server/delete-key.sh
Executable 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
|
||||||
16
deployment/remote_server_offline_images/server-save.sh
Executable file
16
deployment/remote_server_offline_images/server-save.sh
Executable 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
|
||||||
10
deployment/remote_server_secure/delete-key.sh
Executable file
10
deployment/remote_server_secure/delete-key.sh
Executable 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
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
*.db
|
*.db
|
||||||
|
build.sh
|
||||||
|
|||||||
8
webapp/build.sh
Executable file
8
webapp/build.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
source ../deployment/common.sh
|
||||||
|
|
||||||
|
docker build -t dbob16/tam3-webclient:${tam3_version} .
|
||||||
|
docker tag dbob16/tam3-webclient:${tam3_version} dbob16/tam3-webclient:latest
|
||||||
Reference in New Issue
Block a user