Skip to content

Commit

Permalink
Fix waiting for containers script
Browse files Browse the repository at this point in the history
  • Loading branch information
Grekkq committed Mar 17, 2023
1 parent 3df6fe3 commit 12fa55b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions dev-setup/ranger/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ for p in $(find "$RESOURCES_PATH/policy/" -name *.json ); do
curl -i -X POST --user $USERNAME:$PASSWORD "$RANGER_URL/service/public/v2/api/policy" -H "Content-Type: application/json" --data "@$p"
done

echo -e "\n\nRanger setup completed"

tail -f /dev/null
8 changes: 4 additions & 4 deletions waitForContainerSetup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ function cephIsReady() {
docker-compose logs ceph | grep "* Running on http://\[::\]:5000/"
}
function rangerAdminIsReady() {
docker-compose logs ranger-admin | grep "Policy created"
docker-compose logs ranger-admin | grep "Ranger setup completed"
}
function rokkuStsIsReady() {
docker-compose logs rokku-sts | grep "Sts service started listening:"
}
function keycloakIsReady() {
docker-compose logs keycloak | grep "Admin console listening"
}
function mariadbIsReady() {
docker-compose logs mariadb | grep "Version: '10.3.9-MariaDB-1:10.3.9+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution"
function redisIsReady() {
docker-compose logs redis | grep "Ready to accept connections"
}

function waitUntilServiceIsReady() {
Expand All @@ -44,5 +44,5 @@ waitUntilServiceIsReady rokkuStsIsReady "Rokku STS"
waitUntilServiceIsReady cephIsReady "Ceph"
waitUntilServiceIsReady rangerAdminIsReady "Ranger Admin"
waitUntilServiceIsReady keycloakIsReady "Keycloack"
waitUntilServiceIsReady mariadbIsReady "MariaDB"
waitUntilServiceIsReady redisIsReady "Redis"

0 comments on commit 12fa55b

Please sign in to comment.