initial commit
This commit is contained in:
commit
e05980524e
|
@ -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}"
|
|
@ -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"]
|
Loading…
Reference in New Issue