Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
James Babb committed Apr 18, 2019
1 parent 240ef8c commit 8e00f17
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
27 changes: 26 additions & 1 deletion Sources/SIS/Dockerfile
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"]
2 changes: 1 addition & 1 deletion Sources/SIS/build.sh
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

0 comments on commit 8e00f17

Please sign in to comment.