mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-21 10:41:04 +03:00
bf1de1f436
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
30 lines
815 B
Bash
Executable File
30 lines
815 B
Bash
Executable File
#!/usr/bin/env 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
|
|
|
|
if [ "x$DO_CLEAN" == 'xtrue' ]; then
|
|
echo 'Do docker Clean'
|
|
docker system prune -a -f
|
|
fi
|
|
|
|
./wait-elastic.sh 9201
|
|
|
|
# Create workspace record in accounts
|
|
./tool-pg.sh create-workspace sanity-ws -w SanityTest
|
|
# Create user record in accounts
|
|
./tool-pg.sh create-account user1 -f John -l Appleseed -p 1234
|
|
./tool-pg.sh create-account user2 -f Kainin -l Dirak -p 1234
|
|
# Make user the workspace maintainer
|
|
./tool-pg.sh confirm-email user1
|
|
./tool-pg.sh confirm-email user2
|
|
|
|
./restore-pg.sh |