{"action":"opened","issue":{"url":"https://api.github.com/repos/h0tbird/docker-portus/issues/7","repository_url":"https://api.github.com/repos/h0tbird/docker-portus","labels_url":"https://api.github.com/repos/h0tbird/docker-portus/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/h0tbird/docker-portus/issues/7/comments","events_url":"https://api.github.com/repos/h0tbird/docker-portus/issues/7/events","html_url":"https://github.com/h0tbird/docker-portus/issues/7","id":166062928,"number":7,"title":"missing portus user","user":{"login":"Gladmir","id":1619649,"avatar_url":"https://avatars.githubusercontent.com/u/1619649?v=3","gravatar_id":"","url":"https://api.github.com/users/Gladmir","html_url":"https://github.com/Gladmir","followers_url":"https://api.github.com/users/Gladmir/followers","following_url":"https://api.github.com/users/Gladmir/following{/other_user}","gists_url":"https://api.github.com/users/Gladmir/gists{/gist_id}","starred_url":"https://api.github.com/users/Gladmir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gladmir/subscriptions","organizations_url":"https://api.github.com/users/Gladmir/orgs","repos_url":"https://api.github.com/users/Gladmir/repos","events_url":"https://api.github.com/users/Gladmir/events{/privacy}","received_events_url":"https://api.github.com/users/Gladmir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-18T10:23:05Z","updated_at":"2016-07-18T10:23:05Z","closed_at":null,"body":"Hi,\r\n\r\nPortus' database needs to be provisioned I presume since it's complaining about the missing 'portus' user. \r\n\r\nAlso, when it tries to access to underlying registry, it cannot get the image hashes (401 authorization error).\r\n\r\nI think the setup_databases() from compose-setup.sh needs to be integrated here also.\r\n`setup_database() {\r\n  set +e\r\n\r\n  TIMEOUT=90\r\n  COUNT=0\r\n  RETRY=1\r\n\r\n  while [ $RETRY -ne 0 ]; do\r\n    if [ \"$COUNT\" -ge \"$TIMEOUT\" ]; then\r\n      printf \" [FAIL]\\n\"\r\n      echo \"Timeout reached, exiting with error\"\r\n      exit 1\r\n    fi\r\n    echo \"Waiting for mariadb to be ready in 5 seconds\"\r\n    sleep 5\r\n    COUNT=$((COUNT+5))\r\n\r\n    printf \"Portus: configuring database...\"\r\n    docker-compose run --rm web rake db:migrate:reset > /dev/null\r\n    docker-compose run --rm web rake db:seed > /dev/null\r\n\r\n    RETRY=$?\r\n    if [ $RETRY -ne 0 ]; then\r\n        printf \" failed, will retry\\n\"\r\n    fi\r\n  done\r\n  printf \" [SUCCESS]\\n\"\r\n  set -e\r\n}`\r\n"}}
{"actor":{"display_login":"Gladmir"}}