-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from oieioi/fix-outdated
Fixed errors on startup and Changed Dockerfile for local environments
- Loading branch information
Showing
8 changed files
with
34 additions
and
36 deletions.
There are no files selected for viewing
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,3 @@ | ||
vendor/ | ||
Gemfile.lock | ||
.bundle/ |
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 |
---|---|---|
|
@@ -42,3 +42,6 @@ pkg | |
#*.swp | ||
consumer.yml | ||
Gemfile.lock | ||
|
||
/vendor/ | ||
.ruby-version |
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,19 +1,15 @@ | ||
# Based on the Fedora image | ||
FROM fedora | ||
FROM ruby:2.4.2 | ||
|
||
MAINTAINER "Maciej Lasyk" <maciek@lasyk.info> | ||
RUN apt-get update | ||
RUN apt-get install -y libssl-dev git locales locales-all | ||
ENV LANG C.UTF-8 | ||
|
||
# install main packages: | ||
RUN yum -y update | ||
RUN yum -y install openssl-devel openssl readline readline-devel gcc gcc-c++ rubygems rubygems-devel ruby ruby-devel | ||
RUN gem install bundler | ||
RUN gem install earthquake -v 1.0.2 | ||
|
||
# install earthquake | ||
RUN gem install earthquake | ||
|
||
# set the env: | ||
RUN useradd -d /home/twitter twitter | ||
USER twitter | ||
ENV HOME /home/twitter | ||
WORKDIR /home/twitter | ||
|
||
CMD ["earthquake"] | ||
WORKDIR /root/earthquake | ||
COPY . . | ||
RUN bundle install | ||
RUN cp /usr/local/bundle/gems/earthquake-1.0.2/consumer.yml ./ | ||
CMD ["bundle", "exec", "ruby", "./bin/earthquake"] |
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
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
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