Co-authored-by: clfreville2 <clement.freville2@etu.uca.fr> Co-authored-by: bastien ollier <bastien.ollier@etu.uca.fr> Reviewed-on: #9 Reviewed-by: Clément FRÉVILLE <clement.freville2@etu.uca.fr> Co-authored-by: Bastien OLLIER <bastien.ollier@noreply.codefirst.iut.uca.fr> Co-committed-by: Bastien OLLIER <bastien.ollier@noreply.codefirst.iut.uca.fr>stat
parent
3eac3f6b8d
commit
9cb0d90eb1
@ -0,0 +1,44 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
type: docker
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: lint
|
||||
image: python:3.12
|
||||
commands:
|
||||
- pip install --root-user-action=ignore -r requirements.txt
|
||||
- ruff check .
|
||||
|
||||
- name: docker-image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
registry: hub.codefirst.iut.uca.fr
|
||||
repo: hub.codefirst.iut.uca.fr/bastien.ollier/miner
|
||||
username:
|
||||
from_secret: REGISTRY_USER
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
cache_from:
|
||||
- hub.codefirst.iut.uca.fr/bastien.ollier/miner:latest
|
||||
depends_on: [ lint ]
|
||||
|
||||
- name: deploy-miner
|
||||
image: hub.codefirst.iut.uca.fr/clement.freville2/codefirst-dockerproxy-clientdrone:latest
|
||||
settings:
|
||||
image: hub.codefirst.iut.uca.fr/bastien.ollier/miner:latest
|
||||
container: miner
|
||||
command: create
|
||||
overwrite: true
|
||||
admins: bastienollier,clementfreville2,hugopradier2
|
||||
environment:
|
||||
DRONE_REPO_OWNER: bastien.ollier
|
||||
depends_on: [ docker-image ]
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
- ci/*
|
@ -0,0 +1,9 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["streamlit", "run", "frontend/exploration.py", "--server.port=80", "--server.address=0.0.0.0", "--server.baseUrlPath=/containers/bastienollier-miner"]
|
@ -0,0 +1,5 @@
|
||||
matplotlib>=3.5.0
|
||||
pandas>=1.5.0
|
||||
seaborn>=0.12.0
|
||||
streamlit>=1.35.0
|
||||
ruff>=0.4.8
|
Loading…
Reference in new issue