Created
May 14, 2014 17:32
-
-
Save ncdc/3c167f06761403451941 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"push_data": { | |
"images": [], | |
"pushed_at": 1400087328, | |
"pusher": "trustedbuilder" | |
}, | |
"repository": { | |
"comment_count": 0, | |
"date_created": 1400081946, | |
"description": "", | |
"dockerfile": "# centos-ruby\n#\n# This image provide a base for running Ruby based applications. It provides\n# just base Ruby installation using SCL and Ruby application server.\n#\n# If you want to use Bundler with C-extensioned gems or MySQL/PostGresql, you\n# can use 'centos-ruby-extended' image instead.\n#\n\nFROM centos\nMAINTAINER Michal Fojtik <mfojtik@redhat.com>\n\n# Pull in important updates and then install ruby193 SCL\n#\nRUN yum update --assumeyes && \\\n yum install --assumeyes centos-release-SCL gettext tar which && \\\n yum install --assumeyes ruby193 ruby193-ruby-devel \\\n gcc-c++ automake autoconf curl-devel openssl-devel \\\n zlib-devel libxslt-devel libxml2-devel \\\n mysql-libs mysql-devel postgresql-devel sqlite-devel \\\n nodejs010-nodejs && \\\n yum clean all\n\n# Create 'ruby' account we will use to run Ruby application\n#\nRUN mkdir -p /opt/ruby/{gems,run,src,bin} && \\\n groupadd -r ruby -f -g 433 && \\\n useradd -u 431 -r -g ruby -d /opt/ruby -s /sbin/nologin -c \"Ruby application\" ruby\n\nADD ./bin /opt/ruby/bin/\nADD ./etc /opt/ruby/etc/\n\n# FIXME: The STI require all scripts in /usr/bin path, this layer is here to\n# maintain backward compatibility\n#\nRUN cp -f /opt/ruby/bin/prepare /usr/bin/prepare && \\\n cp -f /opt/ruby/bin/run /usr/bin/run && \\\n cp -f /opt/ruby/bin/save-artifacts /usr/bin/save-artifacts\n\nRUN chown -R ruby:ruby /opt/ruby\n\n# Set the 'root' directory where this build will search for Gemfile and\n# config.ru.\n#\n# This can be overridden inside another Dockerfile that uses this image as a base\n# image or in STI via the '-e \"APP_ROOT=subdir\"' option.\n#\n# Use this in case when your application is contained in a subfolder of your\n# GIT repository. The default value is the root folder.\n#\nENV APP_ROOT .\nENV HOME /opt/ruby\nENV PATH $HOME/bin:$PATH\n\n# FIXME: This might be a potential bug in STI where if we keep the USER\n# instruction here, the resulting application image will fail to run.\n#\n# USER ruby\n\nEXPOSE 9292\n\n# Display STI usage when invoked outside STI builder\n#\nCMD [\"/opt/ruby/bin/usage\"]\n", | |
"full_description": null, | |
"is_official": false, | |
"is_private": false, | |
"is_trusted": true, | |
"name": "ruby-1.9.x-centos", | |
"namespace": "ncdc", | |
"owner": "ncdc", | |
"repo_name": "ncdc/ruby-1.9.x-centos", | |
"repo_url": "https://index.docker.io/u/ncdc/ruby-1.9.x-centos/", | |
"star_count": 0, | |
"status": "Active" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment