Consolidated deployment scripts
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
read -p "Enter the name of the computer you plan to use the key on: " pcname
|
||||
|
||||
docker compose exec tam3-api /app/key.py generate $pcname
|
||||
|
||||
echo "Note the key above this line. You can use that for the computer."
|
||||
@@ -1 +0,0 @@
|
||||
docker compose exec tam3-api /app/key.py list
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
gen_password=$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
|
||||
|
||||
echo "DB_LOCATION=./tam3-db" > .env
|
||||
echo "DB_PASSWORD=${gen_password}" >> .env
|
||||
|
||||
docker compose up -d
|
||||
12
deployment/remote_server/generate-key.sh
Executable file
12
deployment/remote_server/generate-key.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
read -p "Enter the name of the computer you plan to use the key on: " pcname
|
||||
|
||||
if [ -x "$(command -v docker)" ]; then
|
||||
docker compose exec tam3-api /app/key.py generate $pcname
|
||||
elif [ -x "$(command -v podman)" ]; then
|
||||
podman compose exec tam3-api /app/key.py generate $pcname
|
||||
else
|
||||
echo "Neither Docker nor Podman are installed. Please install whichever you prefer, then try again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Note the key above this line. You can use that for the computer."
|
||||
7
deployment/remote_server/list-keys.sh
Executable file
7
deployment/remote_server/list-keys.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
if [ -x "$(command -v docker)" ]; then
|
||||
docker compose exec tam3-api /app/key.py list
|
||||
elif [ -x "$(command -v podman)" ]; then
|
||||
podman compose exec tam3-api /app/key.py list
|
||||
else
|
||||
echo "Neither Docker nor Podman are installed. Please install whichever you prefer and try again."
|
||||
fi
|
||||
@@ -1,5 +0,0 @@
|
||||
read -p "Enter the name of the computer you plan to use the key on: " pcname
|
||||
|
||||
podman compose exec tam3-api /app/key.py generate $pcname
|
||||
|
||||
echo "Note the key above this line. You can use that for the computer."
|
||||
@@ -1 +0,0 @@
|
||||
podman compose exec tam3-api /app/key.py list
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
gen_password=$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
|
||||
|
||||
echo "DB_LOCATION=./tam3-db" > .env
|
||||
echo "DB_PASSWORD=${gen_password}" >> .env
|
||||
|
||||
podman compose up -d
|
||||
15
deployment/remote_server/start-server.sh
Executable file
15
deployment/remote_server/start-server.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
gen_password=$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
|
||||
|
||||
echo "DB_LOCATION=./tam3-db" > .env
|
||||
echo "DB_PASSWORD=${gen_password}" >> .env
|
||||
|
||||
if [ -x "$(command -v docker)" ]; then
|
||||
docker compose up -d
|
||||
elif [ -x "$(command -v podman)"]; then
|
||||
podman compose up -d
|
||||
else
|
||||
echo "Neither Docker nor Podman are installed. Please install whichever you prefer and try again."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user