merge
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
57e34833c0
@ -0,0 +1,30 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: CD_PlotaFakeNews
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker_image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
dockerfile: src/app/Dockerfile
|
||||||
|
context: src/app/
|
||||||
|
registry: hub.codefirst.iut.uca.fr
|
||||||
|
repo: hub.codefirst.iut.uca.fr/hugo.livet/plota-fake-news
|
||||||
|
username:
|
||||||
|
from_secret: SECRET_REGISTRY_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: SECRET_REGISTRY_PASSWORD
|
||||||
|
|
||||||
|
- name: deploy-application
|
||||||
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
||||||
|
environment:
|
||||||
|
IMAGENAME: hub.codefirst.iut.uca.fr/hugo.livet/plota-fake-news:latest
|
||||||
|
CONTAINERNAME: PlotaFakeNews
|
||||||
|
COMMAND: create
|
||||||
|
OVERWRITE: true
|
||||||
|
ADMINS: axelde_la_fuente, hugolivet
|
||||||
|
depends_on: [ docker_image]
|
@ -0,0 +1,13 @@
|
|||||||
|
FROM python:3.8
|
||||||
|
|
||||||
|
EXPOSE 8000
|
||||||
|
WORKDIR /app
|
||||||
|
#ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
RUN wget http://fr.archive.ubuntu.com/ubuntu/pool/universe/p/python-stdlib-extensions/python-tk_2.7.18-1_amd64.deb
|
||||||
|
RUN pip install --upgrade pip
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
ENTRYPOINT ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
|
@ -0,0 +1,2 @@
|
|||||||
|
scikit-learn
|
||||||
|
pandas
|
Loading…
Reference in new issue