Skip to content

Commit

Permalink
rename start.sh to start-docker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JettJones committed Jan 9, 2016
1 parent 3111c46 commit 04c5950
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM jruby:1.7

# RUN apt-get update && apt-get install -y gettext

COPY Gemfile* /tmp/
WORKDIR /tmp
RUN bundle install
Expand All @@ -12,7 +10,7 @@ RUN mkdir $app
WORKDIR $app
ADD . $app

RUN chmod +x start.sh
RUN chmod +x start-docker.sh
RUN echo "SECRET_TOKEN: '$(rake secret)'" > config/application.yml

# these steps are done by start.sh:
Expand All @@ -22,4 +20,4 @@ RUN echo "SECRET_TOKEN: '$(rake secret)'" > config/application.yml

EXPOSE 3000

CMD [ "./start.sh" ]
CMD [ "./start-docker.sh" ]
10 changes: 6 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ app:
- "3000:3000"
links:
- mongo
mongo:
image: mongo:3.0
# For development, use a path on your docker-host for /dev/twitarr
# This loads your host files into the container, getting updates without a rebuild.
# volumes:
# - /dev/twitarr:/srv/app

# todo - volumes for app, and volumes-from for mongo
# though it sounds like docker-compose takes care of the second (locally)
mongo:
image: mongo:3.0
4 changes: 4 additions & 0 deletions start.sh → start-docker.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# Complete the application config while running in docker, then start rails.
#
# If you're *not* running in docker. you probably want to run `rails server` instead

set -e
set -x

Expand Down

0 comments on commit 04c5950

Please sign in to comment.