Skip to content

Commit 6cbb42d

Browse files
committed
Fic leap solution
Cancel-prev-build: false Priority: 2 Skip-python-bandit: true Skip-unit-tests:true Skip-unit-test: true Skip-NLT: true Skip-unit-test-memcheck: true Skip-func-vm: true Skip-fault-injection-test: false Skip-func-hw-test: true Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com>
1 parent b587ca5 commit 6cbb42d

3 files changed

Lines changed: 18 additions & 11 deletions

File tree

utils/docker/Dockerfile.el.8

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ FROM basic
4747
# with a local repository, yet needing a proxy to reach outside repositories.
4848
# This needs to be moved to a shell script like above in the future to
4949
# properly only remove the proxy variables only when they need to be removed
50-
RUN dnf upgrade && \
51-
/tmp/install.sh && \
52-
dnf clean all && \
50+
RUN dnf upgrade && \
51+
/tmp/install.sh && \
52+
dnf clean all && \
5353
rm -f /tmp/install.sh
5454

5555
# Add DAOS users

utils/scripts/helpers/repo-helper-leap15.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,18 @@ if [ -n "$REPO_FILE_URL" ]; then
184184
quiet = 1
185185
EOF
186186

187-
# Setup RubyGems to use artifactory as the installation source.
188-
cat <<EOF > /etc/gemrc
189-
:sources:
190-
- https://${trusted_host}/artifactory/api/gems/rubygems-proxy/
191-
EOF
187+
# Setup RubyGems to use artifactory as the primary installation source.
188+
# Prior to setup, it is essential to ensure that Ruby-Dev is installed.
189+
# Failure to comply with this procedure will result
190+
# in the manual /etc/gemrc file being overridden.
191+
dnf --nodocs install ruby-devel
192+
gem env
193+
gem source --list
194+
if [ ! -f /etc/gemrc ]; then
195+
echo ":sources:" > /etc/gemrc
196+
elif ! grep -q '^:sources:$' /etc/gemrc; then
197+
echo ":sources:" >> /etc/gemrc
198+
fi
199+
sed -i "/^:sources:$/a- https://${trusted_host}/artifactory/api/gems/rubygems-proxy/" \
200+
/etc/gemrc
192201
fi

utils/scripts/install-el8.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,4 @@ else
117117
dnf install ${dnf_install_args} maven
118118
fi
119119

120-
gem env
121-
gem source --list
122-
gem install fpm --verbose
120+
gem install fpm

0 commit comments

Comments
 (0)