You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
459 B
Makefile

WORKSPACE := /root/rocker
build:
cargo build --release
# 创建WORKSPACE 对应的文件夹
install: build
mkdir -p $(WORKSPACE)
mkdir -p $(WORKSPACE)/images
mkdir -p $(WORKSPACE)/volumes
mkdir -p $(WORKSPACE)/containers
chmod -R 777 $(WORKSPACE)
cp images/* /root/rocker/images/
cp target/release/rocker /usr/bin/rocker
# 创建一个普通用户
-useradd -g rocker rocker
-groupadd rocker
clean:
rm -rf $(WORKSPACE)
rm -rf /usr/bin/rocker