Skip to content

Commit

Permalink
Merge pull request #62 from wang-rui/main
Browse files Browse the repository at this point in the history
Check automated docker file update
  • Loading branch information
rissangs authored Dec 12, 2020
2 parents 74ea08b + fd6f9b4 commit b933898
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 29 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish Dockerfile on DockerHub
on:
push:
branches:
- main
paths:
- 'Dockerfile'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: main
id: bump
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.bump.outputs.new_tag }}
release_name: ${{ steps.bump.outputs.new_tag }}
body: |
Changes in this Release
- Rebuilt Docker image and published to DockerHub with new tag
draft: false
prerelease: false
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: rwang778/wine-quality-predictor-dockerfile # change this to your DockerHub username and repository
username: ${{ secrets.DOCKER_USERNAME }} # you need to add your Docker username to this GitHub repo as a secret
password: ${{ secrets.DOCKER_PASSWORD }} # you need to add your Docker password to this GitHub repo as a secret
tags: "latest,${{ steps.bump.outputs.new_tag }}"
54 changes: 26 additions & 28 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
############################################################

#Set base image to Ubuntu
FROM ubuntu
FROM selenium/standalone-chrome

#Update repositor source list
RUN apt-get update
RUN sudo apt-get update

################## BEGIN INSTALLATION ######################
#Install python basics
RUN apt-get -y install \
RUN sudo apt-get -y install \
build-essential \
python-dev \
python-setuptools
Expand All @@ -20,36 +20,34 @@ RUN apt-get -y install \
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Beijing
# Install tzdata
RUN apt-get install -y tzdata
RUN sudo apt-get install -y tzdata

# Install python pip
RUN apt-get -y install python3-pip
RUN sudo apt-get -y install python3-pip


#Install git
RUN apt-get -y install git-all
RUN sudo 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
RUN sudo pip3 install matplotlib>=3.2.2
RUN sudo pip3 install scikit-learn>=0.23.2
RUN sudo pip3 install scipy==1.5.3
RUN sudo pip3 install numpy>=1.19.4
RUN sudo pip3 install pandas>=1.1.3
RUN sudo pip3 install matplotlib>=3.3.3
RUN sudo pip3 install requests>=2.24.0
RUN sudo pip3 install graphviz
RUN sudo pip3 install altair>=4.1.0
RUN sudo pip3 install jinja2
RUN sudo pip3 install pip>=20
RUN sudo pip3 install pandas-profiling>=1.4.3
RUN sudo pip3 install psutil>=5.7.2
RUN sudo pip3 install xgboost>=1.*
RUN sudo pip3 install lightgbm>=3.*
RUN sudo pip3 install git+git://github.com/mgelbart/plot-classifier.git
RUN sudo pip3 install altair-saver==0.5.0
RUN sudo pip3 install docopt==0.6.2
RUN sudo pip3 install selenium==3.141.0
RUN sudo pip3 install webdriver-manager==3.2.2



Expand Down
1 change: 0 additions & 1 deletion wine_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ channels:
- defaults
dependencies:
- ipykernel
- matplotlib>=3.2.2
- scikit-learn>=0.23.2
- scipy==1.5.3
- numpy>=1.19.4
Expand Down

0 comments on commit b933898

Please sign in to comment.