Skip to content

Commit aa8ebde

Browse files
committed
Update Dockerfile and Gemfile.lock for Ruby and Bundler versions
- Upgrade Ruby base image to 3.4 - Bump Bundler version from 2.6.3 to 2.6.7 - Update maintainer and add additional metadata labels in Dockerfile - Ensure proper installation of required packages
1 parent 9038bbf commit aa8ebde

File tree

3 files changed

+31
-17
lines changed

3 files changed

+31
-17
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.7
1+
3.4.8

Dockerfile

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
1-
FROM ruby:3.3
1+
ARG RUBY_VERSION=3.4
2+
FROM ruby:${RUBY_VERSION}
23

3-
LABEL maintainer="QAWAII <info@apptweak.com>"
4-
LABEL org.opencontainers.image.source https://github.com/apptweak/pronto-ruby
5-
6-
ARG BUNDLER_VERSION="2.6.3"
4+
ARG BUNDLER_VERSION="2.6.7"
75
ARG NODE_VERSION=14
6+
ARG BUILD_DATE=
7+
ARG CVS_REF=
88

9-
RUN apt-get update && \
10-
apt-get install -y --no-install-recommends \
11-
build-essential \
12-
cmake \
13-
curl \
14-
git \
15-
pkg-config \
16-
openssl \
17-
&& rm -rf /var/lib/apt/lists/*
9+
LABEL maintainer="DevEx Team <squad_devex@apptweak.com>"
10+
LABEL org.opencontainers.image.source https://github.com/apptweak/pronto-ruby
11+
LABEL org.opencontainers.image.title="AppTweak Pronto Ruby Runner"
12+
LABEL org.opencontainers.image.description="GitHub Action for running Pronto code review automation for Ruby projects"
13+
LABEL org.opencontainers.image.source="https://github.com/apptweak/pronto-ruby"
14+
LABEL org.opencontainers.image.url="https://github.com/apptweak/pronto-ruby"
15+
LABEL org.opencontainers.image.vendor="AppTweak"
16+
LABEL org.opencontainers.image.version=${CVS_REF}
17+
LABEL org.opencontainers.image.created=${BUILD_DATE}
18+
19+
RUN apt-get update \
20+
&& apt-get install -y --no-install-recommends \
21+
build-essential \
22+
cmake \
23+
curl \
24+
git \
25+
pkg-config \
26+
openssl \
27+
&& rm -rf /var/lib/apt/lists/*
28+
29+
# Make sure to use bash with pipefail in case something
30+
# fails while being piped to another command in the docker-build
31+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1832

1933
RUN gem install bundler --version "${BUNDLER_VERSION}"
2034

@@ -24,7 +38,7 @@ COPY Gemfile* ./
2438

2539
RUN bundle --retry 4
2640

27-
ENV BUNDLE_GEMFILE /runner/Gemfile
41+
ENV BUNDLE_GEMFILE=/runner/Gemfile
2842

2943
COPY . ./
3044

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,4 +339,4 @@ DEPENDENCIES
339339
webmock
340340

341341
BUNDLED WITH
342-
2.6.3
342+
2.6.7

0 commit comments

Comments
 (0)