machine learning lifecycle sys
- GCP 이용시 (invalid Host header 오류발생) -> 최신버전 도커설치 필요
$ sudo snap refresh docker --channel=latest/edge
- Docker official image pull
$ docker pull ghcr.io/mlflow/mlflow
- DB setting
$ export MYSQL_DATABASE=<db_name>
$ export MYSQL_USER=<user>
$ export MYSQL_PASSWORD=<password>
$ export MYSQL_ROOT_PASSWORD=<root_password>
$ export MYSQL_DIR=<host_mysql_dir>
// example
export MYSQL_DATABASE=mlflow
export MYSQL_USER=mlflow
export MYSQL_PASSWORD=mlflow
export MYSQL_ROOT_PASSWORD=mlflow
export MYSQL_DIR=/home/hoheon/repositories/mlflow_db
- MLflow trackign server setting
$ export MLFLOW_PORT=<mlflow_port>
$ export ARTIFACT_DIR=<artifact_dir>
//exmaple
export MLFLOW_PORT=5000
export ARTIFACT_DIR=/home/hoheon/repositories/mlflow
- Run
// rootless 도커사용시 docker compose
$ docker-compose pull
$ docker-compose build --pull
$ docker-compose up --build --remove-orphans --detach # build after pull latest
With sudo
$ sudo -E docker-compose pull (-E option: 환경변수 유지)
$ sudo -E docker-compose build --pull
$ sudo -E docker-compose up --build --remove-orphans --detach
$ bash run.sh