-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swapped out ruby versions and simplified the docker-run process.
- Loading branch information
1 parent
06cbdd0
commit 029b178
Showing
5 changed files
with
21 additions
and
27 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 |
---|---|---|
@@ -1 +1,8 @@ | ||
.git | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
docker-compose.yml | ||
Jenkinsfile | ||
LICENSE |
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,22 +1,13 @@ | ||
FROM ubuntu:trusty | ||
FROM ruby:onbuild | ||
EXPOSE 4567 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -yq ruby ruby-dev build-essential git npm | ||
RUN gem install --no-ri --no-rdoc bundler | ||
ADD Gemfile ./app/Gemfile | ||
ADD Gemfile.lock ./app/Gemfile.lock | ||
ADD Rakefile ./app/Rakefile | ||
ADD api ./app/api | ||
ADD source ./app/source | ||
ADD config.rb ./app/config.rb | ||
WORKDIR app | ||
RUN apt-get update && apt-get install -y git | ||
RUN gem install bundler | ||
RUN bundle install | ||
|
||
ENTRYPOINT ["bundle", "exec"] | ||
CMD ["rake", "run", "port=8000"] | ||
|
||
ENTRYPOINT ["rake"] | ||
CMD ["run"] | ||
|
||
# 1) Build: docker run devbamboracom rake build | ||
# 2) Run: docker run devbamboracom | ||
# or: docker run devbamboracom rake run port=8080 | ||
# to specify the port. | ||
# 2) Run: docker run devbamboracom |
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