The darthjee/rails_yarn image is a Docker image built on top of darthjee/ruby_331. It adds Node.js, npm and Yarn, pre-caches a set of front-end packages and pre-installs the gems commonly used by Ruby on Rails applications, providing a ready-to-use development environment for Rails applications with front-end asset compilation.
The image runs as the app user (uid 1000), with /home/app/app as the working directory, owned by app.
On top of everything provided by darthjee/ruby_331, this image installs:
The following packages are pre-cached in the global yarn cache (/usr/local/share/.cache/yarn/v6/). They are not installed into any node_modules; they are used when a project's package.json asks for them and yarn install is run.
yarnunderscorebootstrapjqueryjs-cookieNote: The pre-cached
js-cookieis version 3, a major upgrade with API changes (for example,Cookies.getJSONwas removed); see the js-cookie 3 migration notes before upgrading a project that relies on the 2.x API. The pre-cachedjqueryis version 3.7.
The following gems are pre-installed in the image, on top of the ones provided by darthjee/ruby_331:
bundlerrakedarthjee-core_extsinclairobserverrailsrackpumasass-railsuglifiernokogiriturbolinkstzinfo-dataprypry-navpry-railssimplecovsimplecov-htmlsimplecov-lcovyardyardstickzyrarubycriticreekrubocoprubocop-rspecrubocop-factory_botrubocop-railsrubocop-rakerubocop-rspec_railszonebieweb-consolefactory_botrails-controller-testingrspecrspec-collection_matchersrspec-corerspec-expectationsrspec-mocksrspec-railsrspec-supportshoulda-matcherstimecopwebmockReference this image in your Dockerfile (see the available tags at https://hub.docker.com/r/darthjee/rails_yarn/tags):
FROM darthjee/rails_yarn:<version>
Projects can then install their own specific gems and packages on top of the shared base, taking advantage of Docker layer caching to speed up builds and CI pipelines:
FROM darthjee/rails_yarn:<version>
COPY --chown=app:app Gemfile Gemfile.lock ./
RUN bundle install
COPY --chown=app:app package.json yarn.lock ./
RUN yarn install
| Image | Purpose |
|---|---|
darthjee/rails_yarn | Development environment with Rails, Yarn and front-end packages |
darthjee/circleci_rails_yarn | CircleCI-optimized variant for running CI pipelines |
darthjee/production_rails_yarn | Production-ready variant, stripped of development and test gems |
See the LICENSE file for more information.
Content type
Image
Digest
sha256:db181d884…
Size
529 MB
Last updated
4 days ago
docker pull darthjee/rails_yarn