ruby-starter-kits / docker-rails-generator Goto Github PK
View Code? Open in Web Editor NEWBuilds a fresh Ruby on Rails template repository which runs under docker.
License: MIT License
Builds a fresh Ruby on Rails template repository which runs under docker.
License: MIT License
I'm getting the following when trying to create a build image with 'production' as the target.
docker build -t my_app --target production .
#22 19.09 yarn cache v1.22.10
#22 19.11 error An unexpected error occurred: "EACCES: permission denied, rmdir '/usr/src/yarn'".
#22 19.11 info If you think this is a bug, please open a bug report with the information provided in "/usr/src/app/yarn-error.log".
#22 19.11 info Visit https://yarnpkg.com/en/docs/cli/cache for documentation about this command.
------
executor failed running [/bin/sh -c yarn install --frozen-lockfile --check-files && yarn cache clean --all]: exit code: 1
The image builds as expected when I remove this line:
I went for V2 because it will wait for postgres to start before starting ruby. However, Github Codespaces doesn't support V2 so I should probably move it up to V3.
I think wait-for-it could be the solution to enabling the waiting for functionality, maybe with via entrypoint file stored in bin/
.
If anyone has a better solution I'm all ears :D
First of all, thanks for this great project. Super helpful.
I want to let you know that I found a potential issue.
On this line, it seems to be mounting the PostgreSQL log to the Rails application's log
directory. This is a problem as it makes the Rails log unwritable by Rails.
I was able to "fix" the problem by commenting out the line. If I'm not mistaken, maybe ./log
could be changed to some other directory as to remove the conflict.
https://github.com/Shopify/erb-lint < It's awesome & will make the code better.
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.