mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-02 09:13:54 +03:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
|
#!/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
|
||
|
|
||
|
|
||
|
# 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
|
||
|
./tool.sh assign-workspace user1 sanity-ws-qms
|
||
|
./tool.sh assign-workspace user2 sanity-ws-qms
|
||
|
# Make user the workspace maintainer
|
||
|
./tool.sh confirm-email user1
|
||
|
./tool.sh confirm-email user2
|
||
|
|
||
|
./tool.sh create-account user_qara -f Qara -l Admin -p 1234
|
||
|
./tool.sh assign-workspace user_qara sanity-ws-qms
|
||
|
./tool.sh confirm-email user_qara
|
||
|
|
||
|
./restore-workspace.sh
|