From 03798845f001ba14c3fea04a1ce82462ebc8d548 Mon Sep 17 00:00:00 2001 From: Derek Bender Date: Fri, 16 Aug 2019 11:25:14 -0500 Subject: [PATCH] add a spring docker-compose config Change-Id: Ib1c9803acfd656edaf616c47078a485ce3f91e3d Reviewed-on: https://gerrit.instructure.com/205448 Reviewed-by: Keith Garner QA-Review: Keith Garner Product-Review: Keith Garner Tested-by: Jenkins --- docker-compose.spring.yml | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 docker-compose.spring.yml diff --git a/docker-compose.spring.yml b/docker-compose.spring.yml new file mode 100644 index 00000000000..4485d73f78d --- /dev/null +++ b/docker-compose.spring.yml @@ -0,0 +1,48 @@ +# Append `:docker-compose.spring.yml` to COMPOSE_FILE in `.env` +# invoke a console with `docker-compose run --rm web bin/rails console` +# or with specs: `docker-compose run --rm web bin/rspec spec/path/to/file_spec.rb` +version: '2' +services: + web: + environment: + SPRING_TMP_PATH: tmp + SPRING_SOCKET: tmp/spring.sock + SPRING_PIDFILE: tmp/spring.pid + depends_on: + - spring + + spring: + build: . + command: bundle exec spring server + volumes: + - .:/usr/src/app + - api_docs:/usr/src/app/public/doc/api + - brandable_css_brands:/usr/src/app/app/stylesheets/brandable_css_brands + - bundler:/home/docker/.bundler/ + - canvas-docker-gems:/home/docker/.gem/ + - canvas-planner_node_modules:/usr/src/app/packages/canvas-planner/node_modules + - canvas-planner_lib:/usr/src/app/packages/canvas-planner/lib + - generated_1:/usr/src/app/public/javascripts/client_apps + - generated_2:/usr/src/app/public/dist + - generated_3:/usr/src/app/public/javascripts/compiled + - i18nliner_node_modules:/usr/src/app/gems/canvas_i18nliner/node_modules + - locales:/usr/src/app/config/locales/generated + - log:/usr/src/app/log + - node_modules:/usr/src/app/node_modules + - pacts:/usr/src/app/pacts + - quizzes_dist:/usr/src/app/client_apps/canvas_quizzes/dist + - quizzes_node_modules:/usr/src/app/client_apps/canvas_quizzes/node_modules + - quizzes_tmp:/usr/src/app/client_apps/canvas_quizzes/tmp + - reports:/usr/src/app/reports + - selinimum_node_modules:/usr/src/app/gems/selinimum/node_modules + - styleguide:/usr/src/app/app/views/info + - tmp:/usr/src/app/tmp + - translations:/usr/src/app/public/javascripts/translations + - yardoc:/usr/src/app/.yardoc + - yarn-cache:/home/docker/.cache/yarn + environment: + RAILS_ENV: development + ENCRYPTION_KEY: facdd3a131ddd8988b14f6e4e01039c93cfa0160 + SPRING_TMP_PATH: tmp + SPRING_SOCKET: tmp/spring.sock + SPRING_PIDFILE: tmp/spring.pid