099365aec1
Fixes: CNVS-39293 Since we eliminated the pre-population functionality from our Consul wrapper we needed something to conveniently populate the KV store. Test Plan: - Start a Consul server - Run `bin/rake canvas:seed_consul` - Verify that values were written to the KV store. Change-Id: I340011b7d00ed4e3dd2918e3f101f6377fc72d7e Reviewed-on: https://gerrit.instructure.com/126574 Reviewed-by: Cody Cutrer <cody@instructure.com> Product-Review: Tyler Pickett <tpickett@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com> Tested-by: Jenkins |
||
---|---|---|
.. | ||
README.md | ||
consul.md | ||
developing_with_docker.md | ||
getting_docker.md |
README.md
Using Docker to run Canvas
Prerequisites
You need Docker. Don't have Docker yet? Go here for details on getting it setup.
Development
These commands should get you going
cp docker-compose/config/* config/
docker-compose run --rm web bash -c "bundle install"
docker-compose run --rm web bash -c "bundle exec rake db:create db:initial_setup"
Now you can do docker-compose up
and you should be good to go. If you're
using Dinghy or Dory. You should be able to access Canvas by going to: http://web.canvaslms.docker/
On Linux you may want to run this to avoid a few permissions issues:
touch mkmf.log .listen_test
chmod 777 !:2 !:3
sudo chown -R `whoami`:9999 .
chmod 775 gems/canvas_i18nliner
chmod 775 . log tmp gems/selinimum gems/canvas_i18nliner
chmod 664 ./app/stylesheets/_brand_variables.scss
For more information checkout Developing with Docker
Known Issues
Long URL Gateway 502
If a URL is long enough, you may see a Gateway 502 error. This problem has been patched in dinghy-http-proxy#36 however until a new release is cut the follow can be done as a work around:
In ~/.dinghy/proxy.conf
add the following:
proxy_buffers 8 1024k;
proxy_buffer_size 1024k;
Restart dinghy afterwards.