https://github.com/talentplatforms/ruby-node
An opinionated base-image for building classic rails apps
https://github.com/talentplatforms/ruby-node
base-image docker node rails ruby
Last synced: 26 days ago
JSON representation
An opinionated base-image for building classic rails apps
- Host: GitHub
- URL: https://github.com/talentplatforms/ruby-node
- Owner: talentplatforms
- License: mit
- Created: 2020-04-23T05:21:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T14:00:24.000Z (about 4 years ago)
- Last Synced: 2025-02-24T23:29:12.428Z (over 1 year ago)
- Topics: base-image, docker, node, rails, ruby
- Language: Makefile
- Size: 269 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://conventionalcommits.org)
# Ruby/Node.js Image for Rails
This is an opinionated image for building rails apps.
It ships with a couple of tools and libraries found in the next section.
## Tools and Libraries
**PACK_CORE**
- git
- curl
- wget
- unzip
- build-essential
- tzdata
- gnupg
- python
- locales
- locales-all
**PACK_LIBS**
- zlib1g-dev
- libssl-dev
- libreadline-dev
- libyaml-dev
- libxml2-dev
- libxslt1-dev
- libcurl4-openssl-dev
- libffi-dev
- libpq-dev
- postgresql-client-${PG_MAJOR}
- yarn
Per default it uses the de_DE.UTF-8 LANG and LANGUAGE ENVs.
## Workdir
Per convention the working directory is set to **/app**
# How to use this
The image comes with a Makefile that has everything abstracted away for you to easily customize it.
```bash
$ make make NODE_VERSION=13.10.1 DEBIAN_VERSION_NAME=buster build push
```
## Available VARS
```bash
RUBY_VERSION=2.5.5
NODE_VERSION=12.16.0
PG_MAJOR=10
DEBIAN_VERSION_NAME=buster
BUNDLER_VERSION=1.17.3
REGISTRY=${REGISTRY:-ORGANIZATION/ruby-node}
VCS_URL=${VCS_URL:-https://THE_REPO_URL}
```
## Optional Setup
If you are into some tooling for keeping commit-messages clean and want to keep an automated CHANGELOG.md, feel free to `make init` ;).
It'll install the node_modules:
- standard-version,
- husky
- commit-lint
To make this work you need to have NODE.js installed.
# Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style.
1. Fork it
2. Create your feature branch (git checkout -b feature/my-cool-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin feature/my-new-feature)
5. Create new Pull Request
# License
Copyright (c) 2020 Territory Embrace - Talent Platforms.