diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..b4824a6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +Dockerfile* +docker-compose* diff --git a/docker-compose.test.yml b/docker-compose.test.yml new file mode 100644 index 0000000..32bf7ef --- /dev/null +++ b/docker-compose.test.yml @@ -0,0 +1,27 @@ +version: '2' +services: + web: + build: + context: . + dockerfile: Dockerfile-test + env_file: + - .env.example + volumes: + - tmp:/usr/src/app/tmp + - log:/usr/src/app/log + pronto: + build: + context: . + dockerfile: Dockerfile-test + volumes: + - .:/usr/src/app + entrypoint: "" + command: bash -c "bundle exec pronto run -f github_status text -c origin/master" + environment: + GITHUB_ACCESS_TOKEN: ${GITHUB_ACCESS_TOKEN} + RACK_ENV: test + RAILS_ENV: test + +volumes: + log: + tmp: