Merge pull request #20761 from veblush/ruby-docker

Updated ruby build docker image
pull/20778/head
Jan Tattermusch 5 years ago committed by GitHub
commit 9fbce5097b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      third_party/rake-compiler-dock/Dockerfile

@ -1,4 +1,4 @@
FROM larskanis/rake-compiler-dock-mri:0.7.0 FROM larskanis/rake-compiler-dock-mri:0.7.2
RUN find / -name rbconfig.rb | while read f ; do sed -i 's/0x0501/0x0600/' $f ; done RUN find / -name rbconfig.rb | while read f ; do sed -i 's/0x0501/0x0600/' $f ; done
RUN find / -name win32.h | while read f ; do sed -i 's/gettimeofday/rb_gettimeofday/' $f ; done RUN find / -name win32.h | while read f ; do sed -i 's/gettimeofday/rb_gettimeofday/' $f ; done
@ -7,4 +7,8 @@ RUN find / -name libwinpthread-1.dll | xargs rm
RUN find / -name *msvcrt-ruby*.dll.a | while read f ; do n=`echo $f | sed s/.dll//` ; mv $f $n ; done RUN find / -name *msvcrt-ruby*.dll.a | while read f ; do n=`echo $f | sed s/.dll//` ; mv $f $n ; done
RUN apt-get install -y g++-multilib RUN apt-get install -y g++-multilib
# Make the system to have GLIBC 2.12 instead of 2.23 so that
# generated ruby package can run on CentOS 6 with GLIBC 2.12
RUN sed -i 's/__GLIBC_MINOR__\t23/__GLIBC_MINOR__\t12/' /usr/include/features.h
CMD bash CMD bash

Loading…
Cancel
Save