File Dockerfile of Package ci-ruby-container
#!BuildTag: yast-ruby FROM opensuse/leap:15.5 # do not install the files marked as documentation (use "rpm --excludedocs") RUN sed -i -e "s/^.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/" /etc/zypp/zypp.conf # import the YaST OBS GPG key COPY YaST:Head.pub /usr/share/gpg-keys/ RUN rpm --import /usr/share/gpg-keys/YaST:Head.pub # Prefer the packages from the YaST:Head repository # TODO -p 50 does not work, but should be usless anyway, just like --refresh RUN zypper addrepo --refresh https://download.opensuse.org/repositories/YaST:/SLE-15:/SP5/openSUSE_Leap_15.5/ yast RUN zypper --non-interactive install --no-recommends \ brp-check-suse \ brp-extract-appdata \ aspell-en \ fdupes \ git \ grep \ rpm-build \ update-desktop-files \ which \ libxml2-tools \ libxslt-tools \ "rubygem(ruby:2.5.0:abstract_method)" \ "rubygem(ruby:2.5.0:cfa)" \ "rubygem(ruby:2.5.0:cheetah)" \ "rubygem(ruby:2.5.0:gettext)" \ "rubygem(ruby:2.5.0:parallel)" \ "rubygem(ruby:2.5.0:parallel_tests)" \ "rubygem(ruby:2.5.0:raspell)" \ "rubygem(ruby:2.5.0:rspec)" \ "rubygem(ruby:2.5.0:rubocop:0.41.2)" \ "rubygem(ruby:2.5.0:rubocop:0.71.0)" \ "rubygem(ruby:2.5.0:rubocop:1.24.1)" \ "rubygem(ruby:2.5.0:simplecov)" \ "rubygem(ruby:2.5.0:simplecov-lcov)" \ "rubygem(ruby:2.5.0:simpleidn)" \ "rubygem(ruby:2.5.0:suse-connect)" \ "rubygem(ruby:2.5.0:yard)" \ "rubygem(ruby:2.5.0:yast-rake)" \ build \ obs-service-source_validator \ openSUSE-release \ patterns-rpm-macros \ ShellCheck \ shadow \ trang \ yast2 \ yast2-add-on \ yast2-bootloader \ yast2-core \ yast2-country \ yast2-devtools \ yast2-hardware-detection \ yast2-installation \ yast2-installation-control \ yast2-ldap \ yast2-network \ yast2-nfs-server \ yast2-packager \ yast2-pam \ yast2-perl-bindings \ yast2-pkg-bindings \ yast2-proxy \ yast2-ruby-bindings \ yast2-security \ yast2-services-manager \ yast2-slp \ yast2-storage-ng \ yast2-testsuite \ yast2-transfer \ yast2-update \ yast2-users \ yast2-xml \ yast2-ycp-ui-bindings \ && zypper clean --all \ && rm -rf /usr/lib*/ruby/gems/*/cache/ \ && rm -rf /usr/share/doc/ \ && rpm -e --nodeps kbd kbd-legacy \ && find /usr/lib/locale/* -maxdepth 1 | grep -v -E "(en_US|cs_CZ|es_ES|de_DE|C.utf8)" | xargs rm -rf \ && find /usr/share/locale -name "*.mo" -delete COPY yast-ci-ruby /usr/local/bin/ RUN chmod a+x /usr/local/bin/yast-ci-ruby # just a backward compatible symlink, should be removed in the future... RUN ln -s yast-ci-ruby /usr/local/bin/yast-travis-ruby ENV LC_ALL=en_US.UTF-8 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app