This file contains hidden or 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
| # === 1 === | |
| FROM phusion/passenger-ruby21:0.9.12 | |
| MAINTAINER Jeroen van Baarsen "jeroen@firmhouse.com" | |
| # Set correct environment variables. | |
| ENV HOME /root | |
| # Use baseimage-docker's init system. | |
| CMD ["/sbin/my_init"] |
This file contains hidden or 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
| # === 1 === | |
| FROM phusion/passenger-ruby21:0.9.12 | |
| MAINTAINER Jeroen van Baarsen "jeroen@firmhouse.com" | |
| # Set correct environment variables. | |
| ENV HOME /root | |
| # Use baseimage-docker's init system. | |
| CMD ["/sbin/my_init"] |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /home/app/webapp/public; | |
| passenger_enabled on; | |
| passenger_user app; | |
| passenger_ruby /usr/bin/ruby2.1; | |
| } |
This file contains hidden or 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
| RUN rm -f /etc/service/nginx/down |
This file contains hidden or 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
| $ docker build -t intercity/base . |
This file contains hidden or 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
| ... | |
| Step 7 : ADD nginx.conf /etc/nginx/sites-enabled/webapp.conf | |
| ---> 6764b3e5675d | |
| Removing intermediate container ba9caaceb506 | |
| Step 8 : RUN mkdir /home/app/webapp | |
| ---> Running in d4e4ab62d133 | |
| ---> ce38997f3513 | |
| Removing intermediate container d4e4ab62d133 | |
| Step 9 : WORKDIR /tmp | |
| ---> Running in d04e97c1d392 |
This file contains hidden or 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
| $ docker images |
This file contains hidden or 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
| # app/controllers/super_feature_controller.rb | |
| class SuperFeatureController < ApplicationController | |
| def index | |
| #... Some great code that we want to hide | |
| end | |
| end | |
| # app/views/layouts/application.html.erb | |
| <html> | |
| ...Code omited |
This file contains hidden or 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
| # app/views/layouts/application.html.erb | |
| <html> | |
| ...Code omited | |
| <nav> | |
| <%= link_to "Home", root_path %> | |
| <%= link_to("New feature", super_feature_path) if ENV["SUPER_FEATURE_ENABLED"] %> | |
| </nav> | |
| ..Code omited | |
| <html> |
This file contains hidden or 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
| # app/controllers/super_feature_controller.rb | |
| class SuperFeatureController < ApplicationController | |
| before_action :check_super_feature_enabled | |
| def index | |
| #... Some awesome code | |
| end | |
| private |