erikap / docker-ruby-sinatra Goto Github PK
View Code? Open in Web Editor NEWDocker for hosting Sinatra apps
License: MIT License
Docker for hosting Sinatra apps
License: MIT License
Currently the only option is to start sinatra, but it could be nice to run any command available in the bundle (eg bundle exec rspec for tests, rake tasks, ...).
May produce a pull request if I find the time :)
Hi,
Can you add an argument for choose ruby version ?
Thank's
I'm not seeing Sinatra already installed and there's no Gemfile copied into the MAIN_APP_FILE directory.
I ran this command (not as a daemon, to see why it wasn't working):
sudo docker run -p 80:80 -v /home/vagrant/myweb:/usr/src/app -e MAIN_APP_FILE=index.rb -it erikap/ruby-sinatra /bin/bash
That puts me into the container (into /usr/src/app), where I ran:
gem list
and got:
bigdecimal (1.2.4)
bundler (1.8.2)
io-console (0.4.2)
json (1.8.1)
minitest (4.7.5)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
rubygems-update (2.4.6)
test-unit (2.1.5.0)
The directory is empty except for the index.rb file.
Am I missing something? Shouldn't I see the sinatra gem installed? Or a Gemfile in the directory?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.