RUN ln -s /etc/uwsgi/apps-available/openvpn-monitor.ini /etc/uwsgi/apps-enabled/
RUN service uwsgi restart
RUN ln -s /etc/nginx/sites-available/openvpn-monitor /etc/nginx/sites-enabled/
RUN service nginx reload
I can't get past this error:
Installing collected packages: humanize, ipaddr, six, bottle, semantic-version
Running setup.py install for humanize: started
Running setup.py install for humanize: finished with status 'done'
Running setup.py install for ipaddr: started
Running setup.py install for ipaddr: finished with status 'done'
Found existing installation: six 1.9.0
Uninstalling six-1.9.0:
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 326, in run
strip_file_prefix=options.strip_file_prefix,
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 736, in install
requirement.uninstall(auto_confirm=True)
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 742, in uninstall
paths_to_remove.remove(auto_confirm)
File "/usr/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/usr/lib/python2.7/site-packages/pip/utils/init.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib64/python2.7/shutil.py", line 299, in move
rmtree(src)
File "/usr/lib64/python2.7/shutil.py", line 256, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/usr/lib64/python2.7/shutil.py", line 254, in rmtree
os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/usr/lib/python2.7/site-packages/six-1.9.0-py2.7.egg-info'
You are using pip version 8.1.2, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
I am trying to create a docker container that has openvpn-monitor and nginx. Here is my Dockerfile:
FROM centos:7
RUN yum -y update RUN yum -y install python RUN yum -y install python-requests
RUN yum -y install epel-release RUN yum -y install python-pip RUN yum -y upgrade python-setuptools
RUN yum -y install gcc geoip-devel python-virtualenv python-devel GeoIP-data GeoIP-update nginx uwsgi uwsgi-plugin-python geolite2-city python2-geoip2 git
RUN cd /srv WORKDIR /srv
RUN git clone https://github.com/furlongm/openvpn-monitor.git
RUN cd openvpn-monitor
WORKDIR /srv/openvpn-monitor
RUN virtualenv .
RUN . bin/activate
WORKDIR /srv/openvpn-monitor RUN pip install -r requirements.txt
COPY openvpn-monitor.ini /etc/uwsgi/apps-available COPY openvpn-monitor /etc/nginx/sites-available
EXPOSE 80
RUN ln -s /etc/uwsgi/apps-available/openvpn-monitor.ini /etc/uwsgi/apps-enabled/ RUN service uwsgi restart RUN ln -s /etc/nginx/sites-available/openvpn-monitor /etc/nginx/sites-enabled/ RUN service nginx reload
I can't get past this error:
Installing collected packages: humanize, ipaddr, six, bottle, semantic-version Running setup.py install for humanize: started Running setup.py install for humanize: finished with status 'done' Running setup.py install for ipaddr: started Running setup.py install for ipaddr: finished with status 'done' Found existing installation: six 1.9.0 Uninstalling six-1.9.0: Exception: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 326, in run strip_file_prefix=options.strip_file_prefix, File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 736, in install requirement.uninstall(auto_confirm=True) File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 742, in uninstall paths_to_remove.remove(auto_confirm) File "/usr/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove renames(path, new_path) File "/usr/lib/python2.7/site-packages/pip/utils/init.py", line 267, in renames shutil.move(old, new) File "/usr/lib64/python2.7/shutil.py", line 299, in move rmtree(src) File "/usr/lib64/python2.7/shutil.py", line 256, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/lib64/python2.7/shutil.py", line 254, in rmtree os.rmdir(path) OSError: [Errno 39] Directory not empty: '/usr/lib/python2.7/site-packages/six-1.9.0-py2.7.egg-info' You are using pip version 8.1.2, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
Any ideas?
T