No such command: versionlock. Please use /usr/bin/yum --help
Closed this issue · 1 comments
I cloned the git project
git clone https://github.com/jdeathe/centos-ssh.git
I added one line to install ansible
And tried to build the image using docker-compose up -d
But it fails with the below error
python-ply.noarch 0:3.4-11.el7
python-pycparser.noarch 0:2.14-1.el7
python-six.noarch 0:1.9.0-2.el7
python2-cryptography.x86_64 0:1.7.2-2.el7
python2-jmespath.noarch 0:0.9.4-2.el7
python2-pyasn1.noarch 0:0.1.9-7.el7
sshpass.x86_64 0:1.06-2.el7
tcp_wrappers-libs.x86_64 0:7.6-77.el7
Dependency Updated:
openssl-libs.x86_64 1:1.0.2k-19.el7
Complete!
Loaded plugins: fastestmirror, ovl
No such command: versionlock. Please use /usr/bin/yum --help
ERROR: Service 'ssh' failed to build: The command '/bin/sh -c rpm --rebuilddb && rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7 && rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && rpm --import https://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY && yum -y install --setopt=tsflags=nodocs --disableplugin=fastestmirror centos-release-scl centos-release-scl-rh epel-release https://centos7.iuscommunity.org/ius-release.rpm && yum -y install --setopt=tsflags=nodocs --disableplugin=fastestmirror inotify-tools-3.14-8.el7 openssh-clients-7.4p1-21.el7 openssh-server-7.4p1-21.el7 openssl-1.0.2k-19.el7 ansible python-setuptools-0.9.8-7.el7 sudo-1.8.23-4.el7 yum-plugin-versionlock-1.1.31-52.el7 && yum versionlock add inotify-tools openssh openssh-server openssh-clients python-setuptools sudo yum-plugin-versionlock && yum clean all && easy_install 'supervisor == 4.0.4' 'supervisor-stdout == 0.1.1' && mkdir -p /var/log/supervisor/ && rm -rf /etc/ld.so.cache && rm -rf /sbin/sln && rm -rf /usr/{{lib,share}/locale,share/{man,doc,info,cracklib,i18n},{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive} && rm -rf /{root,tmp,var/cache/{ldconfig,yum}}/* && > /etc/sysconfig/i18n' returned a non-zero code: 1
The image from docker hub is working fine. Its just that i am not able build using the git clone.
Any pointers?
i made the below changes in the Dockerfile to make this work
sudo-1.8.23-9.el7
yum-plugin-versionlock-1.1.31-54.el7_8