Skip to content

Commit

Permalink
Update Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfcyx committed Oct 1, 2022
1 parent 6489075 commit 00d1d1b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 easy-fs; cargo fmt; cd ../easy-fs-fuse cargo fmt; cd ../os ; cargo fmt; cd ../user; cargo fmt; cd ..
cd easy-fs; cargo fmt; cd ../easy-fs-fuse cargo fmt; cd ../os ; cargo fmt; cd ../user; cargo fmt; cd ..

0 comments on commit 00d1d1b

Please sign in to comment.