-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add docker configs * remove vagrant * remove more vagrant * update docs * attempt to use travis... * use compose * add docs for forking project * update contributing docs * add db:create and db:migrate as entrypoint * update docs
- Loading branch information
Showing
11 changed files
with
81 additions
and
305 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
language: ruby | ||
cache: bundler | ||
services: docker | ||
before_install: | ||
- docker-compose build | ||
script: | ||
- bundle exec rake db:setup RAILS_ENV=test | ||
- bundle exec rake db:test:prepare | ||
- bundle exec rake spec | ||
- bundle exec rake cucumber | ||
rvm: | ||
- 2.3.1 | ||
- docker-compose run -e "RAILS_ENV=test" web rake db:test:prepare spec cucumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ruby:2.3.1 | ||
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | ||
ENV PHANTOM_JS=2.1.1 | ||
RUN apt-get update && \ | ||
apt-get install build-essential chrpath libssl-dev libxft-dev -y && \ | ||
apt-get install libfreetype6 libfreetype6-dev -y && \ | ||
apt-get install libfontconfig1 libfontconfig1-dev -y && \ | ||
cd ~ && \ | ||
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" && \ | ||
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 && \ | ||
tar xvjf $PHANTOM_JS.tar.bz2 && \ | ||
mv $PHANTOM_JS /usr/local/share && \ | ||
ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin | ||
RUN mkdir /refugerestrooms | ||
WORKDIR /refugerestrooms | ||
COPY Gemfile /refugerestrooms/Gemfile | ||
COPY Gemfile.lock /refugerestrooms/Gemfile.lock | ||
RUN bundle install | ||
COPY . /refugerestrooms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
development: | ||
default: &default | ||
adapter: postgresql | ||
encoding: unicode | ||
database: bathrooms_development | ||
host: db | ||
username: postgres | ||
password: | ||
pool: 5 | ||
host: localhost | ||
|
||
development: | ||
<<: *default | ||
database: bathrooms_development | ||
|
||
|
||
test: | ||
adapter: postgresql | ||
encoding: unicode | ||
<<: *default | ||
database: bathrooms_test | ||
pool: 5 | ||
host: localhost | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3' | ||
services: | ||
db: | ||
image: postgres | ||
web: | ||
build: . | ||
entrypoint: [setup/entry] | ||
command: bundle exec rails s -p 3000 -b '0.0.0.0' | ||
volumes: | ||
- .:/refugerestrooms | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rake db:create | ||
rake db:migrate | ||
|
||
exec "$@" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.