Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo authored and lihuanhuan committed May 5, 2018
1 parent f2f63de commit 3106a1e
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions src/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
FROM docker.io/centos

#archer
RUN yum -y groupinstall "Development tools" \
&& yum -y install wget zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel \
&& cd /opt \
&& wget "https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz" \
&& tar -xvJf Python-3.6.5.tar.xz \
&& cd /opt/Python-3.6.5 \
&& ./configure prefix=/usr/local/python3 \
&& make && make install \
&& ln -s /usr/local/python3/bin/python3 /usr/bin/python3 \
&& ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 \
RUN yum -y install unzip git gcc gcc-c++ make cmake bison openssl-devel mysql-devel openldap-devel \
&& yum -y install epel-release \
&& yum -y install python2-pip \
&& pip install virtualenv -i https://mirrors.ustc.edu.cn/pypi/web/simple/ \
&& yum -y install python34 python34-pip python34-devel.x86_64 \
&& cd /opt \
&& virtualenv venv4archer --python=python3.6 \
&& source venv4archer/bin/activate \
&& pip3 install virtualenv -i https://mirrors.ustc.edu.cn/pypi/web/simple/ \
&& virtualenv venv4archer --python=python3.4 \
&& source venv4archer/bin/activate \
&& git clone -b github https://github.com/hhyo/archer.git \
&& pip3 install -r /opt/archer/requirements.txt -i https://mirrors.ustc.edu.cn/pypi/web/simple/ \
&& cp /opt/archer/src/docker/pymysql/connections.py /opt/venv4archer/lib/python3.6/site-packages/pymysql/ \
&& cp /opt/archer/src/docker/pymysql/cursors.py /opt/venv4archer/lib/python3.6/site-packages/pymysql/ \
&& yum -y install gcc gcc-c++ make cmake bison openssl-devel mysql-devel openldap-devel nginx openssl-devel mysql-devel openldap-devel\
&& cp /opt/archer/src/docker/pymysql/connections.py /opt/venv4archer/lib/python3.4/site-packages/pymysql/ \
&& cp /opt/archer/src/docker/pymysql/cursors.py /opt/venv4archer/lib/python3.4/site-packages/pymysql/ \
&& yum -y install nginx \
&& cp /opt/archer/src/docker/nginx.conf /etc/nginx/ \
&& nginx \
#sqladvisor
Expand Down

0 comments on commit 3106a1e

Please sign in to comment.