@@ -29,14 +29,14 @@ RUN chown rustbuild:rustbuild /home/rustbuild
29
29
# After we're done building we erase the binutils/gcc installs from CentOS to
30
30
# ensure that we always use the ones that we just built.
31
31
COPY dist/build_gcc.sh /build/
32
- RUN sh build_gcc.sh && rm -rf /build
32
+ RUN /bin/bash build_gcc.sh && rm -rf /build
33
33
34
34
# We need a build of openssl which supports SNI to download artifacts from
35
35
# static.rust-lang.org. This'll be used to link into libcurl below (and used
36
36
# later as well), so build a copy of OpenSSL with dynamic libraries into our
37
37
# generic root.
38
38
COPY dist/build_openssl.sh /build/
39
- RUN sh build_openssl.sh && rm -rf /build
39
+ RUN /bin/bash build_openssl.sh && rm -rf /build
40
40
41
41
# The `curl` binary on CentOS doesn't support SNI which is needed for fetching
42
42
# some https urls we have, so install a new version of libcurl + curl which is
@@ -45,39 +45,39 @@ RUN sh build_openssl.sh && rm -rf /build
45
45
# Note that we also disable a bunch of optional features of curl that we don't
46
46
# really need.
47
47
COPY dist/build_curl.sh /build/
48
- RUN sh build_curl.sh
48
+ RUN /bin/bash build_curl.sh
49
49
50
50
# binutils < 2.22 has a bug where the 32-bit executables it generates
51
51
# immediately segfault in Rust, so we need to install our own binutils.
52
52
#
53
53
# See https://github.com/rust-lang/rust/issues/20440 for more info
54
54
COPY dist/build_binutils.sh /build/
55
- RUN sh build_binutils.sh && rm -rf /build
55
+ RUN /bin/bash build_binutils.sh && rm -rf /build
56
56
57
57
# libssh2 (a dependency of Cargo) requires cmake 2.8.11 or higher but CentOS
58
58
# only has 2.6.4, so build our own
59
59
COPY dist/build_cmake.sh /build/
60
- RUN sh build_cmake.sh && rm -rf /build
60
+ RUN /bin/bash build_cmake.sh && rm -rf /build
61
61
62
62
# tar on CentOS is too old as it doesn't understand the --exclude-vcs option
63
63
# that the Rust build system passes it, so install a new version.
64
64
COPY dist/build_tar.sh /build/
65
- RUN sh build_tar.sh && rm -rf /build
65
+ RUN /bin/bash build_tar.sh && rm -rf /build
66
66
67
67
# CentOS 5.5 has Python 2.4 by default, but LLVM needs 2.7+
68
68
COPY dist/build_python.sh /build/
69
- RUN sh build_python.sh && rm -rf /build
69
+ RUN /bin/bash build_python.sh && rm -rf /build
70
70
71
71
# The Rust test suite requires a relatively new version of gdb, much newer than
72
72
# CentOS has to offer by default, and we want it to use the newly installed
73
73
# python so it's ordered here.
74
74
COPY dist/build_gdb.sh /build/
75
- RUN sh build_gdb.sh && rm -rf /build
75
+ RUN /bin/bash build_gdb.sh && rm -rf /build
76
76
77
77
# Apparently CentOS 5.5 desn't have `git` in yum, but we're gonna need it for
78
78
# cloning, so download and build it here.
79
79
COPY dist/build_git.sh /build/
80
- RUN sh build_git.sh && rm -rf /build
80
+ RUN /bin/bash build_git.sh && rm -rf /build
81
81
82
82
# Install buildbot and prep it to run
83
83
RUN curl https://bootstrap.pypa.io/ez_setup.py | python
0 commit comments