From eaf26221a6ff48d4b1ac143d451ce83b8c5cdf79 Mon Sep 17 00:00:00 2001 From: Rui Wang Date: Mon, 7 Dec 2020 21:08:19 +0800 Subject: [PATCH 1/2] Add Dockerfile --- Dockerfile | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e806537 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,56 @@ +############################################################ +# Dockerfile to build wine_quality_prediction images +# Based on Ubuntu +############################################################ + +#Set base image to Ubuntu +FROM ubuntu + +#Update repositor source list +RUN apt-get update + +################## BEGIN INSTALLATION ###################### +#Install python basics +RUN apt-get -y install \ + build-essential \ + python-dev \ + python-setuptools + +# Create Timezon Variable +ENV DEBIAN_FRONTEND=noninteractive +ENV TZ=Asia/Beijing +# Install tzdata +RUN apt-get install -y tzdata + +# Install python pip +RUN apt-get -y install python3-pip + + +#Install git +RUN apt-get -y install git-all + +#Install other dependancies +RUN pip3 install matplotlib>=3.2.2 +RUN pip3 install scikit-learn>=0.23.2 +RUN pip3 install scipy==1.5.3 +RUN pip3 install numpy>=1.19.4 +RUN pip3 install pandas>=1.1.3 +RUN pip3 install matplotlib>=3.3.3 +RUN pip3 install requests>=2.24.0 +RUN pip3 install graphviz +RUN pip3 install altair>=4.1.0 +RUN pip3 install jinja2 +RUN pip3 install pip>=20 +RUN pip3 install pandas-profiling>=1.4.3 +RUN pip3 install psutil>=5.7.2 +RUN pip3 install xgboost>=1.* +RUN pip3 install lightgbm>=3.* +RUN pip3 install git+git://github.com/mgelbart/plot-classifier.git +RUN pip3 install altair-saver==0.5.0 +RUN pip3 install docopt==0.6.2 +RUN pip3 install selenium==3.141.0 +RUN pip3 install webdriver-manager==3.2.2 + + + +CMD ["echo Finish Creating Docker Image!"] From d9433ea323808f82fb8029247622de61432baecc Mon Sep 17 00:00:00 2001 From: Rui Wang Date: Wed, 9 Dec 2020 16:07:57 +0800 Subject: [PATCH 2/2] Update yml file --- wine_env.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wine_env.yml b/wine_env.yml index bff1e38..debb964 100644 --- a/wine_env.yml +++ b/wine_env.yml @@ -3,9 +3,6 @@ channels: - conda-forge - defaults dependencies: - - vega-cli=5.6.0=0 - - vega-lite-cli=3.4.0=0 - - vega3=0.13.0 - ipykernel - matplotlib>=3.2.2 - scikit-learn>=0.23.2 @@ -13,10 +10,8 @@ dependencies: - numpy>=1.19.4 - pandas>=1.1.3 - matplotlib>=3.3.3 - - matplotlib-base>=3.3.3 - requests>=2.24.0 - graphviz - - python-graphviz - altair>=4.1.0 - jinja2 - pip>=20 @@ -26,7 +21,6 @@ dependencies: - xgboost>=1.* - lightgbm>=3.* - git+git://github.com/mgelbart/plot-classifier.git - - rpy2 - altair-saver==0.5.0 - docopt==0.6.2 - selenium==3.141.0