Skip to content

Commit 29b55be

Browse files
committed
Add rails wrapper, install make, expose port 3000
1 parent b85f06b commit 29b55be

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ RUN apt-get install -y software-properties-common
55
RUN apt-add-repository -y ppa:brightbox/ruby-ng
66
RUN apt-get update
77
RUN apt-get install -y ruby2.1 ruby2.1-dev nodejs libsqlite3-dev libpq-dev
8+
RUN apt-get install make
89

910
# Install ruby gems for the RailsDay
1011
RUN gem install bundler

rails

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker run -t -i -v $PWD:$PWD -w=$PWD addestino/railsday rails $*

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
docker run -t -i -v $PWD:$PWD -w=$PWD addestino/railsday /bin/bash
3+
docker run -t -i -p 3000:3000 -v $PWD:$PWD -w=$PWD addestino/railsday /bin/bash

0 commit comments

Comments
 (0)