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 @@ ...@@ -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. 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) ## [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 \ 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 \ && apt-get install -y --no-install-recommends \
cmake=3.13.4-1 \ cmake \
pkg-config=0.29-6 \ pkg-config \
default-libmysqlclient-dev=1.0.* \ default-libmysqlclient-dev \
nodejs=10.24.* \ nodejs \
curl=7.64.* \ curl \
git=1:* \ git \
ruby-dev=1:2.5.* \ ruby-dev \
telnet=0.17-* \ telnet \
nano=3.2-* \ nano \
build-essential=12.* \ build-essential \
libpq-dev=11.* \ libpq-dev \
shared-mime-info=1.10-1 \ shared-mime-info \
&& apt-get autoremove \
&& apt-get autoclean \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& adduser nexus --system --group -u 1000 && mkdir -p /app && chown -R nexus:nexus /app && adduser nexus --system --group -u 1000 && mkdir -p /app && chown -R nexus:nexus /app
...@@ -22,4 +27,4 @@ USER nexus ...@@ -22,4 +27,4 @@ USER nexus
WORKDIR /app WORKDIR /app
COPY --chown=nexus:nexus Gemfile Gemfile.lock ./ 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 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
# frozen_string_literal: true # frozen_string_literal: true
source 'https://rubygems.org' source 'https://rubygems.org'
ruby '2.7.2' ruby '2.7.5'
gem 'rails', '6.1.4.7' gem 'rails', '6.1.4.7'
gem 'puma', '4.3.11' gem 'puma', '4.3.11'
......
...@@ -75,7 +75,7 @@ GEM ...@@ -75,7 +75,7 @@ GEM
autoprefixer-rails (10.4.2.0) autoprefixer-rails (10.4.2.0)
execjs (~> 2) execjs (~> 2)
aws-eventstream (1.2.0) aws-eventstream (1.2.0)
aws-partitions (1.568.0) aws-partitions (1.570.0)
aws-sdk-core (3.130.0) aws-sdk-core (3.130.0)
aws-eventstream (~> 1, >= 1.0.2) aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0) aws-partitions (~> 1, >= 1.525.0)
...@@ -432,7 +432,7 @@ DEPENDENCIES ...@@ -432,7 +432,7 @@ DEPENDENCIES
webmock (= 3.12.2) webmock (= 3.12.2)
RUBY VERSION RUBY VERSION
ruby 2.7.2p137 ruby 2.7.5p203
BUNDLED WITH BUNDLED WITH
2.1.4 2.1.4
# Rails Base Image Builder # 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 ## 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 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: 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. 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