forked from bigbluebutton/greenlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
circleci configuration and docker build
- Loading branch information
Zachary Chai
committed
Nov 30, 2016
1 parent
f012895
commit 07bf1e2
Showing
5 changed files
with
42 additions
and
0 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
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,20 @@ | ||
FROM ruby:2.3.1 | ||
|
||
# app dependencies | ||
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | ||
|
||
ENV RAILS_ENV=production \ | ||
APP_HOME=/usr/src/app \ | ||
BIGBLUEBUTTON_ENDPOINT=http://test-install.blindsidenetworks.com/bigbluebutton/ \ | ||
BIGBLUEBUTTON_SECRET=8cd8ef52e8e101574e400365b55e11a6 | ||
|
||
RUN mkdir $APP_HOME | ||
WORKDIR $APP_HOME | ||
|
||
ADD . $APP_HOME | ||
|
||
RUN bundle install --without development test doc --deployment --clean | ||
|
||
RUN bundle exec rake assets:precompile --trace | ||
|
||
CMD ["scripts/default_start.sh"] |
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,9 @@ | ||
machine: | ||
services: | ||
- docker | ||
|
||
deployment: | ||
hub: | ||
branch: master | ||
commands: | ||
- ./scripts/build_image_master.sh |
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,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -f Dockerfile.prod -t zachblind/greenlight:master . | ||
|
||
docker login -e [email protected] -u $DOCKER_USER -p $DOCKER_PASS | ||
docker push zachblind/greenlight:master |
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,5 @@ | ||
#!/bin/bash | ||
|
||
rake db:migrate | ||
|
||
exec bundle exec puma -C config/puma.rb |