forked from internet2/InCommonTAP-Examples
-
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.
- Loading branch information
James Babb
committed
Apr 18, 2019
1 parent
240ef8c
commit 8e00f17
Showing
2 changed files
with
27 additions
and
2 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,26 @@ | ||
| #to-do | ||
| FROM ruby:2.3.3 | ||
|
|
||
| MAINTAINER "TIER API & EntReg Working Group <tier-api@internet2.edu>" | ||
|
|
||
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs netcat | ||
|
|
||
| RUN mkdir /myapp | ||
|
|
||
| WORKDIR /myapp | ||
|
|
||
| ADD Gemfile /myapp/Gemfile | ||
| ADD Gemfile.lock /myapp/Gemfile.lock | ||
|
|
||
| RUN bundle install | ||
|
|
||
| ADD . /myapp | ||
|
|
||
| # Indicate the container needs bootstrapping | ||
| RUN touch /FIRSTRUN | ||
|
|
||
| # Copy in the container start and bootstrap script | ||
| COPY run-rails.sh /usr/local/bin | ||
|
|
||
| EXPOSE 3000 | ||
|
|
||
| CMD ["/bin/bash", "/usr/local/bin/run-rails.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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash | ||
|
|
||
| # build the sis web app | ||
| docker build sis-app -t tier-sis-web | ||
| docker build . -t tier-sis-web |