Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (4)
......@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [2.2.0](https://gitlab.nexdev.uk/pub/rails-base-image-builder/-/compare/v2.1.0...v2.2.0) (2022-03-28)
### Features
* Upgrade to ruby 2.7.5 and Debian 11 ([5055d1b](https://gitlab.nexdev.uk/pub/rails-base-image-builder/-/commit/5055d1bca23598443c2d330313066db42342acb1))
## [2.1.0](https://gitlab.nexdev.uk/pub/rails-base-image-builder/-/compare/v2.0.7...v2.1.0) (2022-03-23)
......
FROM ruby:2.7.2-slim
FROM ruby:2.7.5-slim-bullseye
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get \
-o Dpkg::Options::="--force-confnew" --allow-remove-essential --allow-change-held-packages -fuy \
upgrade \
&& apt-get install -y --no-install-recommends \
cmake=3.13.4-1 \
pkg-config=0.29-6 \
default-libmysqlclient-dev=1.0.* \
nodejs=10.24.* \
curl=7.64.* \
git=1:* \
ruby-dev=1:2.5.* \
telnet=0.17-* \
nano=3.2-* \
build-essential=12.* \
libpq-dev=11.* \
shared-mime-info=1.10-1 \
cmake \
pkg-config \
default-libmysqlclient-dev \
nodejs \
curl \
git \
ruby-dev \
telnet \
nano \
build-essential \
libpq-dev \
shared-mime-info \
&& apt-get autoremove \
&& apt-get autoclean \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& adduser nexus --system --group -u 1000 && mkdir -p /app && chown -R nexus:nexus /app
......@@ -22,4 +27,4 @@ USER nexus
WORKDIR /app
COPY --chown=nexus:nexus Gemfile Gemfile.lock ./
RUN bundle config --local build.sassc --disable-march-tune-native && gem install bundler -v 2.1 && bundle install --jobs 20 --retry 5
\ No newline at end of file
RUN bundle config --local build.sassc --disable-march-tune-native && gem install bundler -v 2.1 && bundle install --jobs 20 --retry 5
# frozen_string_literal: true
source 'https://rubygems.org'
ruby '2.7.2'
ruby '2.7.5'
gem 'rails', '6.1.4.7'
gem 'puma', '4.3.11'
......
......@@ -75,7 +75,7 @@ GEM
autoprefixer-rails (10.4.2.0)
execjs (~> 2)
aws-eventstream (1.2.0)
aws-partitions (1.568.0)
aws-partitions (1.570.0)
aws-sdk-core (3.130.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
......@@ -432,7 +432,7 @@ DEPENDENCIES
webmock (= 3.12.2)
RUBY VERSION
ruby 2.7.2p137
ruby 2.7.5p203
BUNDLED WITH
2.1.4
# Rails Base Image Builder
This repository is the base image for all base image that is used in the `builder` stage of all of our rails apps.
This repository is the base image for all base image that is used in the `builder` stage of all of our rails apps.
## Update gems
To update the gems in this core image, great care must be taken. Once the gemfile has been update, the lock file can be updated with
a simple helper script. There are many ways of achieving this, but the recommended way is:
```
docker run -it -v "$(pwd)":/app -v /usr/local/bundle:/usr/local/bundle ruby:2.7.2 sh -c "apt-get update; apt-get install -y cmake build-essential; ls /usr/local/bundle; cd /app; gem install bundler:2.1; bundle update; bundle install;"
```
docker run -it -v "$(pwd)":/app -v /usr/local/bundle:/usr/local/bundle ruby:2.7.5 sh -c "apt-get update; apt-get install -y cmake build-essential; cd /app; gem install bundler:2.1; bundle update; bundle install;"
```
Once both the `gemfile` and `gemfile.lock` files are both updated, a commit can be created to force a new update.
\ No newline at end of file
Once both the `Gemfile` and `Gemfile.lock` files are both updated, a commit can be created to force a new update.