Update Docker

This commit is contained in:
Yifan Wu 2022-10-01 20:21:26 +08:00
parent d42121c7a6
commit d61bef2f23

View File

@ -1,10 +1,12 @@
DOCKER_NAME ?= dinghao188/rcore-tutorial
DOCKER_NAME ?= rcore-tutorial-v3
.PHONY: docker build_docker
docker:
docker run --rm -it --mount type=bind,source=$(shell pwd),destination=/mnt ${DOCKER_NAME}
docker run --rm -it -v ${PWD}:/mnt -w /mnt ${DOCKER_NAME} bash
build_docker:
docker build -t ${DOCKER_NAME} .
fmt:
cd os ; cargo fmt; cd ../user; cargo fmt; cd ..
cd os ; cargo fmt; cd ..