Coder Social home page Coder Social logo

newsdev / docker-rails Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 4.0 25 KB

The base Ruby image with additions to support Rails.

Home Page: https://hub.docker.com/r/newsdev/rails/

License: Apache License 2.0

Dockerfile 100.00%
devops docker-image legacy

docker-rails's People

Contributors

aaronkrolik avatar abstrctn avatar albertsun avatar bkoski avatar bsmithgall avatar buth avatar mtandre avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-rails's Issues

Naming consistency between GitHub and Docker Hub

For repositories with Dockerfiles that we publish on Docker Hub, it could be helpful to use the same repository name on both websites. When looking at one of our repos that uses newsdev/rails as a base, my first instinct is to look for that Dockerfile at github.com/newsdev/rails.

While it's certainly worth it to learn about Docker Hub so we all understand where to look for non-NYT Dockerfiles, it might reduce confusion if we either:

  • renamed this repo newsdev/rails, or
  • renamed the docker hub repository as newsdev/docker-rails

Optional gem vendoring

At the moment, the section of the Dockerfile that runs bundle install will fail if gems are not vendored locally in the repository:

# Install gems
ONBUILD COPY Gemfile Gemfile.lock /usr/src/app/
ONBUILD COPY vendor /usr/src/app/vendor
ONBUILD RUN bundle install --local --jobs `nproc`

Is there any way to make this step somehow optional? While vendoring works for us as a general rule, there are cases where it makes less sense, such as in open source projects.

Docker build fails

The following RUN command is failing for me:

Step 8 : RUN gpg --keyserver pgp.mit.edu --recv-keys 279D5C91
 ---> Running in d578ff79371e
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: requesting key 279D5C91 from hkp server pgp.mit.edu
gpgkeys: key 279D5C91 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
The command '/bin/sh -c gpg --keyserver pgp.mit.edu --recv-keys 279D5C91' returned a non-zero code: 2

Does that key id need to be updated from something?

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.