Skip to content

Commit

Permalink
Docker instructions include fetching, committing seed data.
Browse files Browse the repository at this point in the history
  • Loading branch information
toolness committed May 24, 2016
1 parent 0af3251 commit ac7daaf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,7 +1,7 @@
FROM ruby:2.2.2

RUN curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
apt-get install -y nodejs && \
apt-get install -y nodejs postgresql-client && \
npm install -g lineman

COPY Gemfile Gemfile.lock /exercism/
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Expand Up @@ -8,6 +8,14 @@ app:
ports:
- "${EXTERNAL_PORT}:4567"
environment:
# These will ensure that certain development commands which
# use 'psql' will also include our custom user and password.
#
# For more information, see:
# http://www.postgresql.org/docs/8.4/static/libpq-envars.html
PGUSER: exercism
PGPASSWORD: apples

RACK_ENV:
DEV_DATABASE_HOST: db
db:
Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Expand Up @@ -71,7 +71,7 @@ Then run:
This will take a little while as a few Docker containers are built for
you. Once it's finished, run:

docker-compose run app rake db:migrate
docker-compose run app rake db:seeds:fetch db:reseed

Now your database is set up. To get the site up and running, run:

Expand Down

0 comments on commit ac7daaf

Please sign in to comment.