{"action":"created","issue":{"url":"https://api.github.com/repos/netz98/n98-magerun/issues/819","repository_url":"https://api.github.com/repos/netz98/n98-magerun","labels_url":"https://api.github.com/repos/netz98/n98-magerun/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/netz98/n98-magerun/issues/819/comments","events_url":"https://api.github.com/repos/netz98/n98-magerun/issues/819/events","html_url":"https://github.com/netz98/n98-magerun/issues/819","id":153258160,"number":819,"title":"Install Magento Database","user":{"login":"brandontamm","id":1854016,"avatar_url":"https://avatars.githubusercontent.com/u/1854016?v=3","gravatar_id":"","url":"https://api.github.com/users/brandontamm","html_url":"https://github.com/brandontamm","followers_url":"https://api.github.com/users/brandontamm/followers","following_url":"https://api.github.com/users/brandontamm/following{/other_user}","gists_url":"https://api.github.com/users/brandontamm/gists{/gist_id}","starred_url":"https://api.github.com/users/brandontamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandontamm/subscriptions","organizations_url":"https://api.github.com/users/brandontamm/orgs","repos_url":"https://api.github.com/users/brandontamm/repos","events_url":"https://api.github.com/users/brandontamm/events{/privacy}","received_events_url":"https://api.github.com/users/brandontamm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/netz98/n98-magerun/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2016-05-05T15:33:23Z","updated_at":"2016-05-07T20:28:24Z","closed_at":null,"body":"I have a script that:\r\n\r\n1. installs magerun\r\n2. installs composer and then \"github.com/magento-hackathon/magento-composer-installer\" and downloads the magento app and copies local xml config\r\n3. then installs sample data\r\n\r\nI do not want sample data installed - I just want to start with a blank magento database. Is there a way for magerun to install just a blank database? I tried db:create but it just creates a database without any magento structure - any ideas? I want a blank magento enterprise database with just the structure so I can start without any sample data\r\n\r\nHere is a snippet of the script:\r\necho \"Overriding Magento Configuration\"\r\ncp -v /etc/local.xml /var/www/html/web/app/etc/local.xml\r\ncp -v /etc/fpc.xml /var/www/html/web/app/etc/fpc.xml\r\n\r\necho \"Installing Sample Data: Media\"\r\ncurl -s -L https://raw.githubusercontent.com/Vinai/compressed-magento-sample-data/1.9.1.0/compressed-no-mp3-magento-sample-data-1.9.1.0.tgz | tar xz -C /tmp\r\ncp -av /tmp/magento-sample-data-*/* $MAGENTO_ROOT\r\nrm -rf /tmp/magento-sample-data-*\r\n\r\necho \"Installing Sample Data: Database\"\r\nmagerun --skip-root-check --root-dir=\"$MAGENTO_ROOT\" db:create\r\ndatabaseFilePath=\"$MAGENTO_ROOT/*.sql\"\r\nmagerun --skip-root-check --root-dir=\"$MAGENTO_ROOT\" db:import $databaseFilePath\r\nrm $databaseFilePath\r\n\r\necho \"Installing Sample Data: Reindex\"\r\nmagerun --skip-root-check --root-dir=\"$MAGENTO_ROOT\" cache:clean\r\nmagerun --skip-root-check --root-dir=\"$MAGENTO_ROOT\" index:reindex:all\r\n\r\necho \"Installing Sample Data: Admin User\"\r\nmagerun --skip-root-check --root-dir=\"$MAGENTO_ROOT\" \\\r\n\t\tadmin:user:create \\\r\n\t\t\"${ADMIN_USERNAME}\" \\\r\n\t\t\"${ADMIN_EMAIL}\" \\\r\n\t\t\"${ADMIN_PASSWORD}\" \\\r\n\t\t\"${ADMIN_FIRSTNAME}\" \\\r\n\t\t\"${ADMIN_LASTNAME}\" \\\r\n\t\t\"Administrators\"\r\n"},"comment":{"url":"https://api.github.com/repos/netz98/n98-magerun/issues/comments/217666839","html_url":"https://github.com/netz98/n98-magerun/issues/819#issuecomment-217666839","issue_url":"https://api.github.com/repos/netz98/n98-magerun/issues/819","id":217666839,"user":{"login":"ktomk","id":352517,"avatar_url":"https://avatars.githubusercontent.com/u/352517?v=3","gravatar_id":"","url":"https://api.github.com/users/ktomk","html_url":"https://github.com/ktomk","followers_url":"https://api.github.com/users/ktomk/followers","following_url":"https://api.github.com/users/ktomk/following{/other_user}","gists_url":"https://api.github.com/users/ktomk/gists{/gist_id}","starred_url":"https://api.github.com/users/ktomk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktomk/subscriptions","organizations_url":"https://api.github.com/users/ktomk/orgs","repos_url":"https://api.github.com/users/ktomk/repos","events_url":"https://api.github.com/users/ktomk/events{/privacy}","received_events_url":"https://api.github.com/users/ktomk/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T20:28:24Z","updated_at":"2016-05-07T20:28:24Z","body":"@brandontamm: I find the use of docker frustrating and massively standing in the way to trouble-shoot the issue you experience. I also do not understand which problem with the upstream project https://github.com/andreaskoch/dockerized-magento you're trying to solve. There might be some issues with magerun in that setup however these issues are not easily reproduced and to debug in the container infrastructure you offer with that repo."}}