@@ -65,19 +65,6 @@ dnf -y install \
6565 time \
6666 valgrind
6767
68- # Install recent aws CLI
69- curl -sSLf " https://awscli.amazonaws.com/awscli-exe-linux-$( arch) .zip" -o " awscliv2.zip"
70- unzip -q awscliv2.zip
71- ./aws/install
72- rm -rf aws awscliv2.zip
73-
74- # Install session manager
75- if [ " $( arch) " = x86_64 ]; then
76- dnf install -y https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm
77- else
78- dnf install -y https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_arm64/session-manager-plugin.rpm
79- fi
80-
8168GIT_REPO=" https://github.com/vespa-engine/vespa"
8269
8370# Change git reference for a specific version of the vespa.spec file. Use a tag or SHA to allow for reproducible builds.
@@ -94,18 +81,6 @@ sed -e '/^BuildRequires:/d' \
9481# Install vespa build and runtime dependencies
9582dnf builddep --nobest -y vespa.spec vesparun.spec
9683rm -f vespa.spec vesparun.spec
97- gcc_version=$( rpm -qa | sed -ne " s/vespa-toolset-\([0-9][0-9]\)-meta.*/\1/p" )
98-
99- # Install extra compiler tools
100- dnf -y install \
101- clang \
102- " gcc-toolset-$gcc_version -libasan-devel" \
103- " gcc-toolset-$gcc_version -libtsan-devel" \
104- " gcc-toolset-$gcc_version -libubsan-devel"
105-
106- # shellcheck disable=SC1091
107- . /opt/rh/gcc-toolset/enable
108- /usr/lib/rpm/redhat/redhat-annobin-plugin-select.sh
10984
11085# Install Ruby in build image that is required for running system test in PR jobs for both Vespa and system tests
11186dnf -y module enable ruby:3.1
@@ -129,6 +104,18 @@ dnf -y install \
129104# Compile two rubygems
130105gem install ffi libxml-ruby
131106
107+ # Install extra compiler tools
108+ gcc_version=$( rpm -qa | sed -ne " s/vespa-toolset-\([0-9][0-9]\)-meta.*/\1/p" )
109+ dnf -y install \
110+ clang \
111+ " gcc-toolset-$gcc_version -libasan-devel" \
112+ " gcc-toolset-$gcc_version -libtsan-devel" \
113+ " gcc-toolset-$gcc_version -libubsan-devel"
114+
115+ # shellcheck disable=SC1091
116+ . /opt/rh/gcc-toolset/enable
117+ /usr/lib/rpm/redhat/redhat-annobin-plugin-select.sh
118+
132119printf ' %s\n' \
133120 ' # for cmake, ccache, protobuf etc:' \
134121 ' export PATH="/opt/vespa-deps/bin:${PATH}"' > /etc/profile.d/enable-vespa-deps.sh
@@ -137,6 +124,19 @@ printf '%s\n' "* soft nproc 102400" "* hard nproc 102400" > /etc/security/
137124printf ' %s\n' " * soft core 0" " * hard core unlimited" > /etc/security/limits.d/99-coredumps.conf
138125printf ' %s\n' " * soft nofile 262144" " * hard nofile 262144" > /etc/security/limits.d/99-nofile.conf
139126
127+ # Install recent aws CLI
128+ curl -sSLf " https://awscli.amazonaws.com/awscli-exe-linux-$( arch) .zip" -o " awscliv2.zip"
129+ unzip -q awscliv2.zip
130+ ./aws/install
131+ rm -rf aws awscliv2.zip
132+
133+ # Install session manager
134+ if [ " $( arch) " = x86_64 ]; then
135+ dnf install -y https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm
136+ else
137+ dnf install -y https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_arm64/session-manager-plugin.rpm
138+ fi
139+
140140# Install docker client to avoid doing this in all pipelines.
141141dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
142142dnf -y install docker-ce docker-ce-cli containerd.io
0 commit comments