2024-07-13 18:23:11 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
docker compose -p sanity kill
|
|
|
|
docker compose -p sanity down --volumes
|
|
|
|
docker compose -p sanity up -d --force-recreate --renew-anon-volumes
|
|
|
|
docker_exit=$?
|
|
|
|
if [ ${docker_exit} -eq 0 ]; then
|
|
|
|
echo "Container started successfully"
|
|
|
|
else
|
|
|
|
echo "Container started with errors"
|
|
|
|
exit ${docker_exit}
|
|
|
|
fi
|
|
|
|
|
2024-07-19 11:09:13 +03:00
|
|
|
if [ "x$DO_CLEAN" == 'xtrue' ]; then
|
|
|
|
echo 'Do docker Clean'
|
|
|
|
docker system prune -a -f
|
|
|
|
fi
|
|
|
|
|
2024-07-13 18:23:11 +03:00
|
|
|
|
|
|
|
# Create init workspace
|
|
|
|
./tool.sh create-workspace init-ws-qms -w InitTest
|
|
|
|
./tool.sh configure init-ws-qms --enable=*
|
|
|
|
./tool.sh configure init-ws-qms --list
|
|
|
|
|
|
|
|
# Create workspace record in accounts
|
|
|
|
./tool.sh create-workspace sanity-ws-qms -w SanityTest
|
|
|
|
# Create user record in accounts
|
|
|
|
./tool.sh create-account user1 -f John -l Appleseed -p 1234
|
|
|
|
./tool.sh create-account user2 -f Kainin -l Dirak -p 1234
|
2024-08-29 18:22:44 +03:00
|
|
|
./tool.sh create-account user3 -f Cain -l Velasquez -p 1234
|
2024-10-16 13:18:38 +03:00
|
|
|
./tool.sh create-account user4 -f Armin -l Karmin -p 1234
|
2024-11-18 15:44:09 +03:00
|
|
|
|
2024-07-13 18:23:11 +03:00
|
|
|
# Make user the workspace maintainer
|
|
|
|
./tool.sh confirm-email user1
|
|
|
|
./tool.sh confirm-email user2
|
2024-08-29 18:22:44 +03:00
|
|
|
./tool.sh confirm-email user3
|
2024-10-16 13:18:38 +03:00
|
|
|
./tool.sh confirm-email user4
|
2024-07-13 18:23:11 +03:00
|
|
|
|
|
|
|
./tool.sh create-account user_qara -f Qara -l Admin -p 1234
|
|
|
|
./tool.sh confirm-email user_qara
|
|
|
|
|
|
|
|
./restore-workspace.sh
|