initial commit

This commit is contained in:
Pavel Dmitriev 2024-04-30 18:59:25 +03:00
commit e05980524e
2 changed files with 27 additions and 0 deletions

24
.drone.yml Normal file
View File

@ -0,0 +1,24 @@
---
kind: pipeline
type: kubernetes
name: Build image
image_pull_secrets:
- dockerconfig
trigger:
ref:
- refs/heads/testing
- refs/heads/main
- refs/tags/*
steps:
- name: Build docker image
image: gcr.io/kaniko-project/executor:debug
environment:
DOCKER_AUTH:
from_secret: dockerconfig
IMAGE_PREFIX: mxfox.ru/mlops/mlflow
commands:
- echo $${DOCKER_AUTH} > /kaniko/.docker/config.json
- /kaniko/executor --context `pwd` --destination "$${IMAGE_PREFIX}:${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER}-${DRONE_COMMIT_SHA:0:10}"

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM mlflow:v2.12.1
RUN pip install --no-cache-dir boto3
COMMAND ["mlflow", "server","--port","5000","--host","0.0.0.0"]