Helper scripts for setting up docker

Change-Id: I9a4916e4e41d7405775cfde79688598be596e9fd
Reviewed-on: https://gerrit.instructure.com/71750
Tested-by: Jenkins
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
QA-Review: Brad Horrocks <bhorrocks@instructure.com>
Product-Review: Brad Horrocks <bhorrocks@instructure.com>
This commit is contained in:
Brad Horrocks 2016-02-10 10:58:11 -07:00
parent 11824511d2
commit d32b139459
3 changed files with 22 additions and 0 deletions

View File

@ -136,6 +136,15 @@ $ pip install docker-compose
### Bootstrapping ### Bootstrapping
#### In a hurry?
These commands should get you going?
```bash
cp docker-compose/config/* config/
docker-compose run --rm web script/docker_first_time_setup.sh
```
#### Not in a hurry. Or I want to see whats happening
With those dependencies installed, go to your Canvas directory and run With those dependencies installed, go to your Canvas directory and run
the following: the following:

View File

@ -0,0 +1,9 @@
#! /bin/bash
# clean up old stuff
rm -rf vendor/bundle node_modules Gemfile.lock
bundle update
npm install
bundle exec rake db:create
bundle exec rake db:initial_setup
script/docker_update_build.sh

4
script/docker_update_build.sh Executable file
View File

@ -0,0 +1,4 @@
#! /bin/bash
bundle check || bundle update
bundle exec rake db:migrate
bundle exec rake canvas:compile_assets