mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
5353a06b07
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
32 lines
922 B
Bash
Executable File
32 lines
922 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
docker compose -p sanity kill
|
|
docker compose -p sanity down --volumes
|
|
docker compose -p sanity -f docker-compose.yaml 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.sh create-workspace sanity-ws -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 create-account super -f Super -l User -p 1234
|
|
./tool.sh set-user-admin super true
|
|
# Make user the workspace maintainer
|
|
./tool.sh confirm-email user1
|
|
./tool.sh confirm-email user2
|
|
|
|
./restore-workspace.sh |