diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..028ee22 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +kind: pipeline +type: docker +name: Pow + +trigger: + event: + - push + +steps: + + - name: build-pow + image: plugins/docker + settings: + dockerfile: ./src/Dockerfile + context: ./src + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/dorian.hodin/pow + username: + from_secret: SECRET_USERNAME + password: + from_secret: SECRET_PASSWD + + - name: deploy-pow + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest + environment: + IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/pow:latest + CONTAINERNAME: pow + COMMAND: create + OVERWRITE: true + ADMINS: dorianhodin,aurianjault,remiarnal + depends_on: [ build-pow ] diff --git a/.gitignore b/.gitignore index 4df8670..2672e85 100644 --- a/.gitignore +++ b/.gitignore @@ -159,4 +159,4 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +#.idea/ \ No newline at end of file diff --git a/data.csv.tgz b/data.csv.tgz deleted file mode 100644 index 7566b08..0000000 Binary files a/data.csv.tgz and /dev/null differ diff --git a/src/Dockerfile b/src/Dockerfile new file mode 100644 index 0000000..7107b12 --- /dev/null +++ b/src/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.9 + +WORKDIR /app +COPY . . + +RUN pip install --upgrade pip +RUN pip install streamlit matplotlib pandas scikit-learn + +EXPOSE 8501 + +ENTRYPOINT ["streamlit", "run", "home.py", "--server.port=8501", "--server.address=0.0.0.0"] diff --git a/src/back/load_csv.py b/src/back/load_csv.py index 5c9d1de..83f111f 100644 --- a/src/back/load_csv.py +++ b/src/back/load_csv.py @@ -2,6 +2,7 @@ import pandas as pd import numpy as np import matplotlib.pyplot as plt +<<<<<<< HEAD def return_csv(path): df = pd.read_csv(path) return df @@ -13,7 +14,6 @@ def csv_value(df): print(df.isna().sum()) # Useless values - def csv_check(df): for col in df: print("-"*12)