2024-07-01 19:21:52 +03:00
|
|
|
#!/usr/bin/env bash
|
2022-01-25 11:25:20 +03:00
|
|
|
|
2023-12-04 19:03:21 +03:00
|
|
|
docker compose -p sanity kill
|
|
|
|
docker compose -p sanity down --volumes
|
2024-09-11 11:31:26 +03:00
|
|
|
docker compose -p sanity -f docker-compose.yaml up -d --force-recreate --renew-anon-volumes
|
2024-02-16 09:36:14 +03:00
|
|
|
docker_exit=$?
|
|
|
|
if [ ${docker_exit} -eq 0 ]; then
|
|
|
|
echo "Container started successfully"
|
|
|
|
else
|
|
|
|
echo "Container started with errors"
|
|
|
|
exit ${docker_exit}
|
|
|
|
fi
|
2022-01-25 11:25:20 +03:00
|
|
|
|
2024-07-19 11:09:13 +03:00
|
|
|
if [ "x$DO_CLEAN" == 'xtrue' ]; then
|
|
|
|
echo 'Do docker Clean'
|
|
|
|
docker system prune -a -f
|
|
|
|
fi
|
|
|
|
|
2023-06-29 08:46:28 +03:00
|
|
|
./wait-elastic.sh 9201
|
|
|
|
|
2023-07-26 13:22:03 +03:00
|
|
|
# Create workspace record in accounts
|
2024-02-02 12:27:27 +03:00
|
|
|
./tool.sh create-workspace sanity-ws -w SanityTest
|
2022-01-25 11:25:20 +03:00
|
|
|
# Create user record in accounts
|
2023-08-26 12:37:26 +03:00
|
|
|
./tool.sh create-account user1 -f John -l Appleseed -p 1234
|
2023-11-22 12:14:26 +03:00
|
|
|
./tool.sh create-account user2 -f Kainin -l Dirak -p 1234
|
2024-11-12 20:13:11 +03:00
|
|
|
./tool.sh create-account super -f Super -l User -p 1234
|
|
|
|
./tool.sh set-user-admin super true
|
2023-07-26 13:22:03 +03:00
|
|
|
# Make user the workspace maintainer
|
2023-05-29 09:20:59 +03:00
|
|
|
./tool.sh confirm-email user1
|
2023-11-22 12:14:26 +03:00
|
|
|
./tool.sh confirm-email user2
|
2022-01-25 11:25:20 +03:00
|
|
|
|
|
|
|
./restore-workspace.sh
|