Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
tci-gateway-module
Grpc
Commits
a1fa5a33
Commit
a1fa5a33
authored
8 years ago
by
Alexander Polcyn
Committed by
Nicolas "Pixel" Noble
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix missing static ruby lib on 2.4.0
parent
b230ba87
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
third_party/rake-compiler-dock/Dockerfile
+8
-1
8 additions, 1 deletion
third_party/rake-compiler-dock/Dockerfile
with
8 additions
and
1 deletion
third_party/rake-compiler-dock/Dockerfile
+
8
−
1
View file @
a1fa5a33
...
@@ -122,13 +122,16 @@ RUN echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
...
@@ -122,13 +122,16 @@ RUN echo "gem: --no-ri --no-rdoc" >> ~/.gemrc && \
rvm 2.4.0 do gem install mini_portile2 &&
\
rvm 2.4.0 do gem install mini_portile2 &&
\
find /usr/local/rvm -type d -print0 | sudo xargs -0 chmod g+sw "
find /usr/local/rvm -type d -print0 | sudo xargs -0 chmod g+sw "
RUN
bash
-c
"gem env"
RUN
bash
-c
"gem list rake-compiler"
# Install rake-compiler's cross rubies in global dir instead of /root
# Install rake-compiler's cross rubies in global dir instead of /root
RUN
sudo mkdir
-p
/usr/local/rake-compiler
&&
\
RUN
sudo mkdir
-p
/usr/local/rake-compiler
&&
\
sudo chown
rvm.rvm /usr/local/rake-compiler
&&
\
sudo chown
rvm.rvm /usr/local/rake-compiler
&&
\
ln
-s
/usr/local/rake-compiler ~/.rake-compiler
ln
-s
/usr/local/rake-compiler ~/.rake-compiler
# Patch rake-compiler to avoid build of ruby extensions
# Patch rake-compiler to avoid build of ruby extensions
RUN
cd
/usr/local/rvm/gems/ruby-2.4.0/gems/rake-compiler-
0.9.5
&&
git apply /home/rvm/patches/rake-compiler-
0.9.5
/
*
.diff
;
\
RUN
cd
/usr/local/rvm/gems/ruby-2.4.0/gems/rake-compiler-
1.0.3
&&
git apply /home/rvm/patches/rake-compiler-
1.0.3
/
*
.diff
;
\
true
true
RUN
bash
-c
"rvm use 2.4.0 --default &&
\
RUN
bash
-c
"rvm use 2.4.0 --default &&
\
...
@@ -204,6 +207,10 @@ RUN cp /tmp/build/runas /usr/local/bin/
...
@@ -204,6 +207,10 @@ RUN cp /tmp/build/runas /usr/local/bin/
# Install sudoers configuration
# Install sudoers configuration
RUN
cp
/tmp/build/sudoers /etc/sudoers.d/rake-compiler-dock
RUN
cp
/tmp/build/sudoers /etc/sudoers.d/rake-compiler-dock
# Fixup Ruby 2.4 'static' compilation issue.
RUN
echo
'!<arch>'
>
/usr/local/rake-compiler/ruby/x86_64-linux-gnu/ruby-2.4.0/lib/libruby.a
RUN
echo
'!<arch>'
>
/usr/local/rake-compiler/ruby/i686-linux-gnu/ruby-2.4.0/lib/libruby.a
ENV
RUBY_CC_VERSION 2.4.0:2.3.0:2.2.2:2.1.5:2.0.0
ENV
RUBY_CC_VERSION 2.4.0:2.3.0:2.2.2:2.1.5:2.0.0
CMD
bash
CMD
bash
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