-
Notifications
You must be signed in to change notification settings - Fork 154
Build and deploy YMIR on mac laptop (M1 chip)
Current deploy script ymir.sh only supports Linux platform. For developers that hopes to try YMIR on their own MacOS machines, there are some customized steps:
- build YMIR backend/web docker image
- modify .env file
- modify docker-compose.yml
-
Add
gcc
to ymir/Dockerfile.backend, as the base docker image does not include gcc environment, which are required for some python perquisites. -
Build backend:
docker build -t industryessentials/ymir-backend:release-2.0.0 --build-arg PIP_SOURCE=https://pypi.mirrors.ustc.edu.cn/simple --build-arg GO_SOURCE='https://mirrors.aliyun.com/goproxy/,direct' -f Dockerfile.backend .
- Build web docker image:
docker build -t industryessentials/ymir-web:release-2.0.0 --build-arg NPM_REGISTRY='https://registry.npm.taobao.org' .
- modify .env file
add IP address, set ANONYMOUS feedback, change SERVER_RUNTIME to runc.
- modify docker-compose.yml
use volnet/tensorflow-tensorboard
to replace tensorflow/tensorflow:2.9.1
- label-studio supports MacOS, so no change is needed.
- for label-free, which uses
mysql:5.7.22
, an alternative option ismariadb:10.5.8
That's it, enjoy your journey!
docker-compose -f docker-compose.yml down && docker-compose -f docker-compose.yml up -d