Giter Site home page Giter Site logo

docker-rails's People

Contributors

alanwilhelm avatar dziemba avatar gaurish avatar guigs avatar hwartig avatar ndreynolds avatar rkushnir avatar tsujigiri avatar

Stargazers

 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  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  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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-rails's Issues

rails-assets.sh failing due to missing RAILS_MASTER_KEY

When using encrypted secrets on a Rails 5.1 app, deployment fails with this message:

Rails::Secrets::MissingKeyError: Missing encryption key to decrypt secrets with. Ask your team for your master key and put it in ENV["RAILS_MASTER_KEY"]

I have RAILS_MASTER_KEY configured as environment variable but it's not picked up.

syslog-ng stops

Don't know why but syslog-ng stops logging after some time. Any idea?

mysql support

How could I add mysql-support?
I tried to build image form this dockerfile:

# Dockerfile
FROM ad2games/docker-rails:latest
RUN apt-get install -qq -y mysql-client libmysqlclient-dev 

but this does not work.
Also adding new packages by ENV APT_PACKAGES from the docker command does not resolve.

Sidekiq is not running

Hi, I'm using this image for my project but sidekiq seems not being running.

I'm deploying the project at Beanstalk and it runs fine, also, it is queueing all messages to redis but they are not being consumed

Instance:
64bit Amazon Linux 2016.09 v2.5.1 running Docker 1.12.6

DockerImage:
FROM ad2games/docker-rails:2.5.0
EXPOSE 8080

Unknown MySQL server host 'noop'

In a new project I get this error and cannot find any reason.

Step 1/1 : FROM ad2games/docker-rails:latest
# Executing 5 build triggers...
Step 1/1 : COPY Gemfile Gemfile.lock /home/app/webapp/
 ---> Using cache
Step 1/1 : COPY vendor/ /home/app/webapp/vendor/
 ---> Using cache
Step 1/1 : RUN chown -R app:app Gemfile Gemfile.lock vendor/ &&   chpst -u app bundle install --deployment --jobs 4 --without development test &&   find vendor/bundle -name *.gem -delete
 ---> Using cache
Step 1/1 : COPY . /home/app/webapp/
Step 1/1 : RUN mkdir -p db public/assets log tmp vendor &&   chown -R app:app app db public log tmp vendor && chpst -u app /opt/rails-assets.sh
 ---> Running in f3820f857ac3
/home/app/webapp/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.0
Could not find gem 'pg'.
/home/app/webapp/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.5
WARNING: Skipping key "SECRET_KEY_BASE". Already set in ENV.
rake aborted!
**Mysql2::Error: Unknown MySQL server host 'noop' (25)**
/home/app/webapp/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.5/lib/mysql2/client.rb:89:in `connect'
/home/app/webapp/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.5/lib/mysql2/client.rb:89:in `initialize'
/home/app/webapp/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/mysql2_adapter.rb:25:in `new'

issue with HTTP request

https://registry-1.docker.io/v2/ad2games/docker-rails/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4

this is giving me a 401 error.

I'm using rkt, which may be the problem. when i go to the link in my browser i get the same error.

Unable to install packages because /var/lib/dpkg is deleted

In the cleanup /var/lib/dpkg is deleted. This means that you cannot do any apt-get commands like update or install. We are unable to install any other dependencies. Is there a reason this is done?

It shows up with this error:

E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Volume addition

Hello there. Love your image!
I know you mention that it is intended for production use but I would really like to use it in development as well. The bad thing is that i've tried but couldn't make it to copy the folder I'm working on at the host to the container whenever I change something.
Actually, through a docker-compose.yml I've added a volume - .:/myapp but this isn't the working folder.
Whenever I change it to use -.:/home/app/webapp/ puma just won't start.
Do you have any ideas why this is happening?
Thank you very much in advance!

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.