Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rails Build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
Rails Build
Commits
8beb2213
Commit
8beb2213
authored
2 years ago
by
John Harris
Browse files
Options
Downloads
Patches
Plain Diff
refactor: Gem update steps now in a script
parent
306dfa04
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Gemfile.lock
+4
-4
4 additions, 4 deletions
Gemfile.lock
README.md
+1
-1
1 addition, 1 deletion
README.md
gem-update.sh
+11
-0
11 additions, 0 deletions
gem-update.sh
with
16 additions
and
5 deletions
Gemfile.lock
+
4
−
4
View file @
8beb2213
...
...
@@ -79,7 +79,7 @@ GEM
autoprefixer-rails (10.4.7.0)
execjs (~> 2)
aws-eventstream (1.2.0)
aws-partitions (1.58
6
.0)
aws-partitions (1.58
7
.0)
aws-sdk-core (3.130.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
...
...
@@ -169,7 +169,7 @@ GEM
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.1
7
.0)
loofah (2.1
8
.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
...
...
@@ -212,7 +212,7 @@ GEM
activesupport
bunny
nio4r (2.5.8)
nokogiri (1.13.
5
)
nokogiri (1.13.
6
)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
pg (1.3.5)
...
...
@@ -345,7 +345,7 @@ GEM
activesupport (>= 5.2)
sprockets (>= 3.0.0)
strings-case (0.3.0)
strscan (3.0.
1
)
strscan (3.0.
3
)
thor (1.2.1)
thread_safe (0.3.6)
tilt (2.0.10)
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
8beb2213
...
...
@@ -11,7 +11,7 @@ To update the gems in this core image, great care must be taken. Once the gemfil
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.5 sh -c "apt-get update; apt-get install -y cmake build-essential; cd /app; gem install bundler:2.1; bundle update; bundle install;"
./gem-update.sh
```
Once both the
`Gemfile`
and
`Gemfile.lock`
files are both updated, a commit can be created to force a new update.
This diff is collapsed.
Click to expand it.
gem-update.sh
100644 → 100755
+
11
−
0
View file @
8beb2213
#!/bin/bash
cd
"
$(
dirname
"
$0
"
)
"
set
-ex
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;"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment