Giter Club home page Giter Club logo

mocker-ruby's Introduction

mocker-ruby

Docker emulated Cloud Foundry Ruby Buildpack

Description

This docker image will try to emulate Cloud Foundry runtime for the Ruby Buildpack. It is based on the new Cloud Foundry Stack - cflinuxfs2 which is based upon Ubuntu 14.04.

WARNING: cf-release v204 was the first release to support cflinuxfs2 stack. Buildpacks prior to this cf-release version could not work.

Configuration

This image has a few env vars that you can modify to alter the behavior at runtime. But the 3 more important are:

  • RUN_COMMAND: This is the command to run your app. Required
  • BP_URL: This is the java buildpack git url. This is mainly intended for custom java buildpacks. default: https://github.com/cloudfoundry/ruby-buildpack.git
  • BP_VERSION: This is the version of the buildpack to checkout. default: v1.3.0

Two important thing to know is that you must mount your code in the /object path of the image and Default listening port is 8080 (Remember to expose it), you can check the next examples to see how to do this.-

Usage

$ git clone https://github.com/Altoros/cf-example-ruby-dashing.git $HOME/worspace/cf-example-ruby-dashing/
$ docker run -p 8080:8080 -e RUN_COMMAND="bundle exec rackup -p 8080 config.ru" -v $HOME/workspace/cf-example-ruby-dashing:/object cacciald/mocker-ruby:latest

For a more advanced deployment I can recommend you to use fig/docker compose.-

mocker-ruby's People

Contributors

lcacciagioni avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.