combostrikehq / docker-rails Goto Github PK
View Code? Open in Web Editor NEWAn opinionated docker image for running Rails apps in production.
License: MIT License
An opinionated docker image for running Rails apps in production.
License: MIT License
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.
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.
The following code is generating startup error if Postgres gem is not added to gemfile:
SECRET_KEY_BASE=noop DATABASE_URL=postgres://noop ; \
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
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'
Don't know why but syslog-ng stops logging after some time. Any idea?
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!
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?
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.
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.