From e05980524ec7f2657d923a0f86b17186335fae17 Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Tue, 30 Apr 2024 18:59:25 +0300 Subject: [PATCH] initial commit --- .drone.yml | 24 ++++++++++++++++++++++++ Dockerfile | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d2aca6d --- /dev/null +++ b/.drone.yml @@ -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}" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6e70af8 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file