Paul is right, I had to do the following:
FROM centos:centos6
RUN yum update -y && \
yum install -y epel-release && \
yum install -y \
iproute \
python-setuptools \
hostname \
inotify-tools \
yum-utils \
which \
python-meld3 \
python-pip && \
yum clean all && \
pip install supervisor
Now is allowing me to move on and install supervisord.
Thanks
Reynier Perez Mira
P: (786) 580 7572
E: [email protected]
W: http://www.dynamotechnology.com
On Wed, Jan 24, 2018 at 11:19 AM, Paul Lockaby <[email protected]> wrote:
> I ran into the same issue on CentOS 6 because CentOS 6 defaults to Python
> 2.6 and PyPI dropped support for using pip on Python 2.6. The only real
> work around is to download supervisord and its dependencies (specifically
> meld3) and build them manually, in order, with "python setup.py install".
>
> > On Jan 23, 2018, at 5:53 PM, [email protected] wrote:
> >
> > I am working in a Docker container which is being created from CentOS 6.
> This is basically how the `Dockerfile` looks like:
> >
> > ```
> > FROM centos:centos6
> > RUN yum update -y && \
> > yum install -y epel-release && \
> > yum install -y iproute python-setuptools hostname inotify-tools
> yum-utils which && \
> > yum clean all && \
> > easy_install supervisor
> > ADD container-files /
> > VOLUME ["/data"]
> > ENTRYPOINT ["/config/bootstrap.sh"]
> > ```
> >
> > When I run `docker build .` for build and test the image it ends up with
> the following error:
> >
> > ```
> > ...
> > Loaded plugins: fastestmirror, ovl
> > Cleaning repos: base epel extras updates
> > Cleaning up Everything
> > Cleaning up list of fastest mirrors
> > Searching for supervisor
> > Reading http://pypi.python.org/simple/supervisor/
> > Couldn't find index page for 'supervisor' (maybe misspelled?)
> > Scanning index of all packages (this may take a while)
> > Reading http://pypi.python.org/simple/
> > No local packages or download links found for supervisor
> > error: Could not find suitable distribution for
> Requirement.parse('supervisor')
> > ```
> >
> > I have tried also installing first pip and then install supervisor using
> pip as follow:
> >
> > ```
> > RUN yum update -y && \
> > yum install -y epel-release && \
> > yum install -y iproute python-setuptools hostname inotify-tools
> yum-utils which && \
> > yum clean all && \
> > easy_install pip && \
> > pip install supervisor
> > ```
> >
> > And in this case it ends up with the following error:
> >
> > ```
> > ...
> > Complete!
> > Loaded plugins: fastestmirror, ovl
> > Cleaning repos: base epel extras updates
> > Cleaning up Everything
> > Cleaning up list of fastest mirrors
> > Searching for pip
> > Reading http://pypi.python.org/simple/pip/
> > Couldn't find index page for 'pip' (maybe misspelled?)
> > Scanning index of all packages (this may take a while)
> > Reading http://pypi.python.org/simple/
> > No local packages or download links found for pip
> > error: Could not find suitable distribution for Requirement.parse('pip')
> > ```
> >
> > - I do have Internet connection
> > - I am not behind any firewall and/or proxy
> > - I do not have any AV since I am building the container from Fedora 27
> > - I do not have any IPTables and/or SELinux enabled
> > - Everything else does install properly the only thing failing is
> `supervisor`
> >
> > I am missing something here? Is not supervisor supported by CentOS6?
> What's the right way to install this?
> >
> > Note: I could try installing directly from EPEL repos but the version is
> really old and I will be missing a lot of features:
> >
> > ```
> > ============================================================
> ====================
> > Package Arch Version
> Repository Size
> > ============================================================
> ====================
> > Installing:
> > inotify-tools x86_64 3.14-1.el6 epel
> 46 k
> > iproute x86_64 2.6.32-54.el6 base
> 389 k
> > python-setuptools noarch 0.6.10-3.el6 base
> 336 k
> > supervisor noarch 2.1-9.el6 epel
> 292 k
> > yum-utils noarch 1.1.30-40.el6 base
> 113 k
> > Installing for dependencies:
> > dbus-glib x86_64 0.86-6.el6 base
> 170 k
> > hwdata noarch 0.233-18.1.el6 base
> 1.3 M
> > initscripts x86_64 9.03.58-1.el6.centos.2 updates
> 949 k
> > iptables x86_64 1.4.7-16.el6 base
> 254 k
> > iputils x86_64 20071127-24.el6 base
> 121 k
> > libdrm x86_64 2.4.65-2.el6 base
> 136 k
> > libpciaccess x86_64 0.13.4-1.el6 base
> 24 k
> > libxml2-python x86_64 2.7.6-21.el6_8.1 base
> 325 k
> > plymouth x86_64 0.8.3-29.el6.centos base
> 89 k
> > policycoreutils x86_64 2.0.83-30.1.el6_8 base
> 663 k
> > python-meld3 x86_64 0.6.7-1.el6 epel
> 71 k
> > redhat-logos noarch 60.0.14-12.el6.centos base
> 15 M
> > sysvinit-tools x86_64 2.87-6.dsf.el6 base
> 60 k
> > udev x86_64 147-2.73.el6_8.2 base
> 358 k
> > upstart x86_64 0.6.5-16.el6 base
> 177 k
> > util-linux-ng x86_64 2.17.2-12.28.el6_9.1 updates
> 1.6 M
> > ```
> >
> > Reynier Perez Mira
> > P: (786) 580 7572
> > E: [email protected]
> > W: http://www.dynamotechnology.com
> > _______________________________________________
> > Supervisor-users mailing list
> > [email protected]
> > https://lists.supervisord.org/mailman/listinfo/supervisor-users
>
>
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users