Skip to content

Commit 6ef032a

Browse files
authored
Update base dockerfile image (#246)
* Update base dockerfile image
1 parent 915d907 commit 6ef032a

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

.circleci/config.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ jobs:
1313
test:
1414
parallelism: 1
1515
docker:
16-
- image: ruby:2.7.3-alpine3.13
16+
- image: ruby:2.7.6-alpine3.14
1717
environment:
1818
BUNDLE_JOBS: 10
1919
BUNDLE_RETRY: 5
2020
BUNDLE_PATH: vendor/bundle
2121
KRANE_ENV: test
2222
steps:
2323
- checkout
24+
- setup_remote_docker:
25+
docker_layer_caching: true
26+
version: 20.10.14
2427
- run:
2528
name: Install system deps
2629
command: apk add --update --no-cache git bash curl make gcc libc-dev tzdata g++ npm
@@ -41,7 +44,7 @@ jobs:
4144
- checkout
4245
- setup_remote_docker:
4346
docker_layer_caching: true
44-
version: 18.06.0-ce
47+
version: 20.10.14
4548
- run:
4649
name: Build artifacts w/ Skaffold
4750
command: |
@@ -58,7 +61,7 @@ jobs:
5861
- checkout
5962
- setup_remote_docker:
6063
docker_layer_caching: true
61-
version: 18.06.0-ce
64+
version: 20.10.14
6265
- run:
6366
name: Build & Push artifacts w/ Skaffold
6467
command: |
@@ -88,7 +91,7 @@ jobs:
8891
- checkout
8992
- setup_remote_docker:
9093
docker_layer_caching: true
91-
version: 18.06.0-ce
94+
version: 20.10.14
9295
- attach_workspace:
9396
at: ~/project
9497
- run:
@@ -104,7 +107,7 @@ jobs:
104107
export SKAFFOLD_LABEL="io.appvia.krane/git-sha=${CIRCLE_SHA1}"
105108
export SKAFFOLD_KUBE_CONTEXT=<<parameters.skaffold_kube_context>>
106109
export SKAFFOLD_NAMESPACE=<<parameters.skaffold_namespace>>
107-
110+
108111
# Deploy with Skaffold - refers to artefacts built in previous step
109112
skaffold deploy --build-artifacts build/${CIRCLE_SHA1}.json
110113

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.3
1+
2.7.6

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
##############################################################
1717
# Stage: builder
18-
FROM ruby:2.7.3-alpine3.13 AS builder
18+
FROM ruby:2.7.6-alpine3.16 AS builder
1919

2020
WORKDIR /app
2121

@@ -25,7 +25,7 @@ RUN apk add --update --no-cache git bash curl make gcc libc-dev tzdata g++ npm
2525
COPY . /app
2626

2727
# install bundler
28-
RUN gem install bundler --no-document -v $(cat Gemfile.lock | tail -n 1 | xargs)
28+
RUN gem install bundler --no-document -v $(cat Gemfile.lock | tail -1 | tr -d " ")
2929

3030
# install gems
3131
RUN bundle config set deployment 'true'
@@ -37,7 +37,7 @@ RUN cd dashboard && npm install --no-optional && npm audit fix && npm rebuild no
3737

3838
##############################################################
3939
# Stage: final
40-
FROM ruby:2.7.3-alpine3.13
40+
FROM ruby:2.7.6-alpine3.16
4141

4242
LABEL org="Appvia Ltd"
4343
LABEL website="appvia.io"
@@ -48,9 +48,10 @@ ENV APP_PATH /app
4848

4949
RUN apk add --update --no-cache git bash curl npm yarn
5050

51-
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl && \
52-
chmod +x ./kubectl && \
53-
mv ./kubectl /usr/local/bin/kubectl
51+
ENV KUBECTL_VERSION="1.23.0"
52+
ENV KUBECTL_BINARY_URL=https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
53+
54+
RUN curl -sL -o /usr/bin/kubectl ${KUBECTL_BINARY_URL} && chmod +x /usr/bin/kubectl
5455

5556
RUN addgroup -g 1000 -S appuser \
5657
&& adduser -u 1000 -S appuser -G appuser

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ PLATFORMS
185185
ruby
186186

187187
DEPENDENCIES
188-
bundler (>= 2.2.10)
188+
bundler (>= 2.2.28)
189189
byebug
190190
factory_bot
191191
krane!

krane.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
4242
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
4343
spec.require_paths = ['lib']
4444

45-
spec.add_development_dependency 'bundler', '>= 2.2.10'
45+
spec.add_development_dependency 'bundler', '>= 2.2.28'
4646
spec.add_development_dependency 'byebug'
4747
spec.add_development_dependency 'factory_bot'
4848
spec.add_development_dependency 'profile'

0 commit comments

Comments
 (0)