File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -184,9 +184,18 @@ if [ -n "$REPO_FILE_URL" ]; then
184184 quiet = 1
185185EOF
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
192201fi
Original file line number Diff line number Diff line change 117117 dnf install ${dnf_install_args} maven
118118fi
119119
120- gem env
121- gem source --list
122- gem install fpm --verbose
120+ gem install fpm
You can’t perform that action at this time.
0 commit comments