Commit Graph

43 Commits

Author SHA1 Message Date
Derek Bender b3c7221e1d Fix `bundler lock --update` step in Dockerfile
Fixes: CCI-61

Creating a test plan for this patchset requires more effort than
monitoring the builds requires to see if there are any issues.

Change-Id: I4734b5ea370bf349631ea3a06fca8baa3bbdbaf5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/215509
Reviewed-by: S. Jacob Powell <spowell@instructure.com>
Tested-by: Jenkins
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-11-12 22:36:51 +00:00
Derek Bender ab1f2e4534 update yarn in docker to 1.19.1
Change-Id: I27be3f641eee9953130ce9b9303a9c4dbae886fd
Reviewed-on: https://gerrit.instructure.com/213343
Tested-by: Jenkins
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-10-17 15:21:58 +00:00
Derek Bender dc04b25729 update yarn for docker
Change-Id: Ib93ee0d2b0d2a7f3a6e5edfda4d2b80e7c1f8c97
Reviewed-on: https://gerrit.instructure.com/210538
Tested-by: Jenkins
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Marc Phillips <mphillips@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-10-14 14:45:44 +00:00
James Williams 2768dda033 use knapsack in new jenkins rspec build
closes #CORE-3292 #CORE-3293

Change-Id: Id54c8568bd1ca45929f35926e0eebdd558e68a58
Reviewed-on: https://gerrit.instructure.com/207602
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
2019-09-13 15:19:34 +00:00
Derek Bender b942bc2876 Fix yarn for initial docker-compose build
Fixes: GRADE-2257

It appears that several `yarn build:canvas` scripts in
packages/ open files with `rw` permissions that they
don't have at an early enough stage in the Dockerfile.
We were previously making all the directories writeable
but this wasn't going far enough since it was ignoring
files. I have a hunch that the files don't need to be
opened with `rw` permissions but that might be a problem
with babel or something else upstream. Since we eventually
make all files owned by docker:docker might as well do it
sooner with `COPY --chown=docker:docker`.

A follow up patchset should do add this feature to all
the other COPY directives.

Change-Id: I6a09161a34d6895284a87750091de3f82aa44e15
Reviewed-on: https://gerrit.instructure.com/197837
Tested-by: Jenkins
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
Reviewed-by: Steven Burnett <sburnett@instructure.com>
2019-06-17 22:58:54 +00:00
Derek Bender 989813fe76 Remove conditional for docker bundler lock step
Restores POSIX compliance

Closes: GRADE-2203
Closes: gh-1451

Test Plan:
- works on systems without modern bash syntax (i.e.`[[]]`)

Change-Id: I2c4924a9abe8d0561782150d3daf4df10b7a7fd1
Reviewed-on: https://gerrit.instructure.com/194898
Reviewed-by: Keith Garner <kgarner@instructure.com>
Tested-by: Jenkins
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-05-23 16:03:09 +00:00
Derek Bender a83f5ce73c Update bundler in Dockerfile
Change-Id: Ia99950a92586c53d0989fd2a2b628dfe5680b96d
Reviewed-on: https://gerrit.instructure.com/194697
Reviewed-by: James Butters <jbutters@instructure.com>
Tested-by: Jenkins
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-05-22 16:09:49 +00:00
Derek Bender b3826e0d88 Update Gemfile.lock in docker for dev
Change-Id: I4fd5d13f959de1a2b1d03175e3a3fff17ec97958
Reviewed-on: https://gerrit.instructure.com/194515
Tested-by: Jenkins
Reviewed-by: Marc Phillips <mphillips@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-05-22 16:08:53 +00:00
Derek Bender 44245dbeb3 Upgrade Yarn in Docker
Change-Id: If1a391b718d66995f0c5c8ecd9e6fa49f66e439f
Reviewed-on: https://gerrit.instructure.com/194593
Tested-by: Jenkins
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-05-21 23:15:24 +00:00
Ryan Shaw e974c7abcd fix docker build to work w/ `@instructure/js-utils`
In order for the `yarn build:canvas` task to work in 
`packages/js-utils` canvas’s root babel.config.js needs to exist
on the filesystem.

Because our docker file didn’t do something with it in its cached
build layer steps it wasn’t there by the time docker ran that step.

Test plan:
* the docker build should not fail with:
@instructure/js-utils

 | `yarn build:canvas` failed with exit code 1
…
  | { Error: Babel was run with rootMode:"upward" but a root could not
 be found when searching upward from "/usr/src/app/packages/js-utils"

Change-Id: I5bd4b45ca25493768a867d1662bca059c9b056cd
Reviewed-on: https://gerrit.instructure.com/194403
Reviewed-by: Derek Bender <djbender@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-05-20 20:57:55 +00:00
Derek Bender a4ae18291d upgrade yarn in Dockerfiles
Change-Id: Ic9096ebb96b8675ca647ddd11e54ab8934c810c4
Reviewed-on: https://gerrit.instructure.com/191343
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-04-30 11:34:24 +00:00
Derek Bender acac7ba597 upgrade to xenial based images
Change-Id: Icbaa39af8947763bbbba3bd5295a839235775174
Reviewed-on: https://gerrit.instructure.com/188974
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2019-04-11 22:55:36 +00:00
Clay Diffrient ade362e515 Bump to Node 10
closes CORE-2329

There were some tests that were expecting a snapshot-like value
where it expected `new Date().toLocaleDateString()` to give something
Like “2016-7-11” but that was actually wrong. If you do
`new Date().toLocaleDateString()` in a browser it will give you
something like “7/11/2016”. And this new version of node matches what
a real browser would have done, so I just updated the specs so they
are looking for the correct format. This change does not actually
reflect a change in what a real user would see. Just what
jest/jsdom/node formats it as.

Test Plan:
  - check to make sure that the assignments 2 availability dates
    component produces markup exactly as it did before
  - Automated tests pass
  - Build canvas locally, everything passes.
  - Build canvas with docker, everything passes.

Change-Id: I74285cd6d9b251ca60ab79396e332cc3a419bcee
Reviewed-on: https://gerrit.instructure.com/177198
Tested-by: Jenkins
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
QA-Review: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-03-22 17:29:36 +00:00
Derek Bender 7d4a074b43 bump yarn in docker
test plan:
 - docker-compose down # take down existing containers
 - docker-compose build
 - docker-compose run --rm web yarn install
 - docker-compose run --rm web bundle exec rake canvas:compile_assets
 - docker-compose up
 - Ensure canvas loads

Change-Id: I47862fdbacc7414bf39e86344deb082667736e35
Reviewed-on: https://gerrit.instructure.com/171513
Tested-by: Jenkins
Reviewed-by: Gary Mei <gmei@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
2018-11-15 21:41:02 +00:00
Dan Minkevitch 3787616c28 Upgrade Yarn version to 1.10.1
if you are having problems after this commit you need
to either: `brew upgrade yarn` or` apt-get install yarn`
or rebuild your docker container or do whatever else you
use to manage software versions

Change-Id: I5c163baa8c4c814eeabca9a46501d508736a4ca1
Reviewed-on: https://gerrit.instructure.com/167252
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Dan Minkevitch <dan@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
2018-10-08 17:14:57 +00:00
Ryan Shaw fd33fdf2b5 Upgrade yarn from 1.7.0 to 1.9.4
if you are having problems after this commit you need to either:
`brew upgrade yarn` Or `apt-get install yarn` or rebuild your docker
container or do whatever else you use to manage software versions

Change-Id: Ie338a24544bd4677f68222b69cfa178c0ef21ca9
Reviewed-on: https://gerrit.instructure.com/160616
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2018-08-14 16:11:54 +00:00
Ryan Shaw efb76cf2fb Upgrade yarn from 1.6.0 to 1.7.0
if you are having problems after this commit you need to either:
“brew upgrade yarn”
Or
“apt-get install yarn” 
Or 
Rebuild your docker container
Or do whatever else you use to manage software version

Change-Id: I8428112b4a44c28edd2608124bff9e01a8e960d9
Reviewed-on: https://gerrit.instructure.com/151423
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
Product-Review: Ryan Shaw <ryan@instructure.com>
2018-05-24 21:37:04 +00:00
Michael Hargiss 8568525f24 consolidate contract tests
Test Plan:
  - follow the instructions in spec/contracts/README.md to run
  the live events contract tests locally
  - follow the instructions in
  spec/contracts/service_providers/canvas_lms/README.md to run
  the "Generic Consumer" Canvas API contract tests locally

Change-Id: I316747f53731f411ab82432587596e335c2fd059
Reviewed-on: https://gerrit.instructure.com/149766
Reviewed-by: Tucker McKnight <tmcknight@instructure.com>
Tested-by: Jenkins
Product-Review: Michael Hargiss <mhargiss@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
2018-05-18 22:34:20 +00:00
Derek Bender 90e8bbe37a update bundler in Dockerfiles
Change-Id: Idec6cbfa21a4bf67cba5e879806f0f678c191f79
Reviewed-on: https://gerrit.instructure.com/147776
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
2018-04-23 20:47:34 +00:00
Derek Bender 11b30e7fea upgrade yarn to 1.6.0
Change-Id: Icc59c9c43fea079196d9a0dc29b23ac0f1da74c7
Reviewed-on: https://gerrit.instructure.com/147047
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
2018-04-19 20:31:06 +00:00
Clay Diffrient 497fe4d5ea Update to yarn 1.5.1
closes GH-1250

Test Plan:
  - Everything builds

Change-Id: Id51b8997f5ae1b53c24c2b4b616c6956833ed2b5
Reviewed-on: https://gerrit.instructure.com/142553
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Tested-by: Jenkins
2018-03-08 19:53:13 +00:00
Bryan Petty 150dfe1bb9 use RubyGems version in base docker image
Change-Id: I740ac57029983f82a7d8508a3798b47b93c3fa88
Reviewed-on: https://gerrit.instructure.com/140249
Tested-by: Jenkins
Reviewed-by: Marc Alan Phillips <mphillips@instructure.com>
QA-Review: Tyler Burraston <tburraston@instructure.com>
Product-Review: Bryan Petty <bpetty@instructure.com>
2018-02-07 22:35:06 +00:00
Ed Schiebel 40b876493e Move planner under canvas-lms
closes: CORE-949

this also upgrades us to use what was on canvas-planner master
as of 1pm on 2/1/2018 (specifically 9569cc1)

test plan:
* canvas planner should work
* all automated builds should pass

Change-Id: Iecce81d640c8aacb79189e2b26946613a03d25f2
Reviewed-on: https://gerrit.instructure.com/135947
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2018-02-02 23:58:48 +00:00
Ryan Shaw 14629ead2d Tell docker file to use node 8
I just missed this in my other commit that upgraded node to 8.9.4

Change-Id: I34808eeb4854a7439e4943d0529d962164c52d8f
Reviewed-on: https://gerrit.instructure.com/136847
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins
Product-Review: Ryan Shaw <ryan@instructure.com>
2018-01-03 21:57:56 +00:00
Steven Burnett 731723a535 upgrade yarn in dockerfile
refs: CORE-674

Change-Id: Ic660ccc55670d19a483ce89a907e7179db569b78
Reviewed-on: https://gerrit.instructure.com/133518
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2017-11-22 16:38:35 +00:00
Aaron Griffin 97c13ff7de chore(postgres): Use http to fix busted https
postgres' deb repo is busted for now, so we'll use http so we can carry
on with our projects.

Test Plan:
- build a docker image
- it should succeed

Change-Id: I63369f690fa7bf96b6b18d537f40eec790c95873
Reviewed-on: https://gerrit.instructure.com/132621
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
2017-11-13 19:43:46 +00:00
Omar Khan 7aebf31e78 Use postgresql-client-9.5 in development
Commit a0e14364b8 upgrades the postgres image to 9.5, but the Canvas
Dockerfile does not install a corresponding client version. This leads
to errors like this on setup:

pg_dump: server version: 9.5.9; pg_dump version: 9.3.19
pg_dump: aborting because of server version mismatch
rake aborted!
failed to execute:
pg_dump -s -x -O -f /usr/src/app/db/structure.sql --schema=public canvas

This commit fixes this issue by updating the Dockerfile to use
postgresql-client-9.5.

Test plan:

- Use a fresh dinghy VM
- Run through the docker development setup instructions
- Verify that there are no pg_dump errors
- Verify that Canvas starts and runs as expected

Change-Id: Icafbe4f280a2c40b839c36717ebe7ee133ee9b3c
Reviewed-on: https://gerrit.instructure.com/130146
Tested-by: Jenkins
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Product-Review: Omar Khan <okhan@instructure.com>
2017-10-18 20:17:54 +00:00
Jon Jensen 6d8d6abdd4 pin yarn version for docker
test plan:
docker-compose build works again \o/

Change-Id: I2d599a9463cdcca7d48e8d310c658f040b42c6a3
Reviewed-on: https://gerrit.instructure.com/125573
Tested-by: Jenkins
Reviewed-by: John Corrigan <jcorrigan@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-09-11 20:24:30 +00:00
Derek Bender 1db525f5f9 bump Dockerfile bundler
Change-Id: Idaa2cb5282ec62820eed3c33cebfd464bf9e33c8
Reviewed-on: https://gerrit.instructure.com/119649
Tested-by: Jenkins
Reviewed-by: Shahbaz Javeed <sjaveed@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
2017-07-19 15:49:42 +00:00
Derek Bender ee14b415ae bump docker bundler
Change-Id: I5fd2767221c086c89190ddedd5fb6abd5800ab47
Reviewed-on: https://gerrit.instructure.com/119376
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins
Product-Review: Derek Bender <djbender@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
2017-07-18 15:53:05 +00:00
Brad Horrocks 902fca830d Fix build :fingers-crossed:
Change-Id: I2f904ddee198167efc11bc762823105a3c704b16
Reviewed-on: https://gerrit.instructure.com/118045
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-07-06 19:24:41 +00:00
Jon Jensen ef480cd1c3 docker enhancements/fixes, fixes SD-2499, refs gh-1043
bring the development docker image down from 3.6GB -> 2.4GB

add a production docker image that weighs in at 1.2GB, which should speed
up end-to-end tests

template-ize web Dockerfiles so that common stuff stays consistent, volume
dirs are set up properly, etc.

test plan:
1. docker-based builds should pass
2. docker image should be usable (docker-compose up, etc)

Change-Id: I41ebb155090f66e346bdc285ca5c613ee5793127
Reviewed-on: https://gerrit.instructure.com/112859
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-05-26 20:57:24 +00:00
Jon Jensen e7a9bbd4fb don't do an extra yarn install in docker land
this makes it so building the web container succeeds without having to
tweak the Dockerfile. i.e. no more:

  Error: ENOENT: no such file or directory, scandir '/usr/src/app/node_modules/node-sass/vendor'

i'm still not sure why the extra yarn install causes that, but it does 🤷

test plan:
`docker-compose build web` should succeed

Change-Id: I5120dd0ea6168d7d373364bccd02bfa990df54d5
Reviewed-on: https://gerrit.instructure.com/111953
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-05-16 18:53:35 +00:00
Alex Boyd c87a72a738 fix build breakage due to v8-compile-cache sadness
Change-Id: I8e22f74e279af73e8e7c96f6d56cd6e87214ed57
Reviewed-on: https://gerrit.instructure.com/107820
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-07 00:54:22 +00:00
Simon Williams d625f63db2 don't `yarn install` from gems/ in parallel
there seem to be file system access collisions, and they are more
pronounced in the docker build.

test plan: `docker-compose build --no-cache web` should work

Change-Id: Ieeb734745846458eee4e689c3e98c384fe3b1f94
Reviewed-on: https://gerrit.instructure.com/105054
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Omar Khan <okhan@instructure.com>
Product-Review: Simon Williams <simon@instructure.com>
2017-03-14 22:29:24 +00:00
August Thornton 96e33d3f2d fix mkdir errors when compiling assets as Docker usr
Change-Id: Ia2b8a13ba885c4ec9d0581ae889a0fd0816ed4ff
Reviewed-on: https://gerrit.instructure.com/104113
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2017-03-07 17:03:22 +00:00
Neil Gupta 26002b3a21 Update bundler in dockerfile
Test plan:
* `docker compose build` works and updates bundler version

Change-Id: I4268eb3a5ae9b70a36263362763166bb29b3d0ae
Reviewed-on: https://gerrit.instructure.com/104181
Tested-by: Jenkins
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
Product-Review: Neil Gupta <ngupta@instructure.com>
2017-03-07 00:01:52 +00:00
Ryan Shaw 05f55c1c30 Deprecate `npm` client. Use `yarn` instead
Closes: CNVS-35152

This changes all our tooling that used `npm` to
Run scripts to use `yarn`. `npm` will still work
for now but if you have yarn installed, it will use
that.

Cheat Sheet:
old command      -> new command
npm install      -> yarn install (or just `yarn`)
npm run webpack  -> yarn run webpack
npm test         -> yarn test
See more at https://yarnpkg.com

Test plan:
* all Jenkins builds should pass
* without yarn installed:
* run script/nuke_node.sh
* it should work and warn you about how `npm` is deprecated
* now install yarn, e.g.: `brew install yarn`
* run script/nuke_node.sh again
* it should work and you should see silly yarn emoji
  in the output and it should be a lot faster

* the docker changes I made should work and docker should
  build correctly and use yarn.

Change-Id: I4aa31eeae3ecc504634a7c72a1ea0d3396f445e3
Reviewed-on: https://gerrit.instructure.com/102969
Tested-by: Jenkins
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2017-03-01 19:39:01 +00:00
Brad Horrocks 8b3099aa77 Add public/javascripts/compiled to dockerfile
this will prevent root from owning the volume mount point

Change-Id: I43cb62311cddfbeca537bbfe2329daa6dfece9bd
Reviewed-on: https://gerrit.instructure.com/102818
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins
Product-Review: Brad Horrocks <bhorrocks@instructure.com>
2017-02-22 17:08:44 +00:00
Sheldon Leibole e60af33613 add i18n sorting dependencies to docker
fixes CNVS-35005

Test Plan

1. run:  docker-compose build
2. run: docker-compose run --rm web bundle exec rake db:migrate:redo VERSION=20120502190901
3. Visit: /accounts/1/users
4. Create users with the names: Jalapeno, Jalapeoo, Jalapeño, JalapeЖo
5. Refresh the page and verify they are sorted:
   Jalapeno, Jalapeño, Jalapeoo, JalapeЖo
6. Create an assignment
7. Give each of the students created above a grade
8. Visit: /courses/1/gradebook/history
9. Click on the assignment name to display the hidden table.
10. Verify the table of students / grades is sorted:
    Jalapeno, Jalapeño, Jalapeoo, JalapeЖo

Change-Id: I9743c559a20a3d50600bcbc7e4a310105ec638cf
Reviewed-on: https://gerrit.instructure.com/102465
Tested-by: Jenkins
Reviewed-by: Neil Gupta <ngupta@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Keith T. Garner <kgarner@instructure.com>
2017-02-21 18:24:56 +00:00
Tyler Pickett 6d6ba7a753 Stop bundle/npm installing as root
Running NPM install as root was causing the pre-install hook to fail due
to the privilege drop. Additionally, the script wasn't actually in place
anyway compounding the sadness. Now we're switching to the docker user
for installing dependencies and copying the scripts directory into the
image first.

Change-Id: Ieaf38d9cd9947e7f809796e38340e10033ae1eb7
Reviewed-on: https://gerrit.instructure.com/101437
Tested-by: Jenkins
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Brad Horrocks <bhorrocks@instructure.com>
2017-02-08 21:22:32 +00:00
Cody Cutrer 3f65a7420f move docker sheeples to ruby 2.4
Change-Id: Ic56248dff7e0ee5a88c16b90f5b65dca7bbde245
Reviewed-on: https://gerrit.instructure.com/101279
Reviewed-by: Tyler Pickett <tpickett@instructure.com>
Tested-by: Jenkins
Reviewed-by: Bryan Petty <bpetty@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-02-07 19:32:03 +00:00
Brad Horrocks 3c809153d1 docker-compose.yml v2
If you have a docker-compose.override file you'll want to
move it somewhere else.

mv docker-compose.override.yml docker-compose.`whoami`.yml

Once you've updated your override file to the version 2 syntax, you
should add it to the COMPOSE_FILE environment variable. Probably in a
.env file in the project root.

Test plan:

You'll need to remove your existing canvas containers and volumes to 
fully test this.

to do so run this **BEFORE** you checkout this patchset

```
docker-compose down
docker-compose ps -q | docker rm
docker volume ls -q | grep canvaslms | xargs docker volume rm 
```


then you should be able to get up and running using the following

```
cp docker-compose/config/* config/
dc build
dcr web bundle exec rake db:create db:initial_setup
dc up
```

You should be able to access canvas like normal

Change-Id: Ia7ff76cfdd4f46278fc1cb2a03969fdadaa4a434
Reviewed-on: https://gerrit.instructure.com/91008
Reviewed-by: Zach Wily <zach@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brad Horrocks <bhorrocks@instructure.com>
2016-11-15 17:06:37 +00:00