forked from xyanrch/overplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 925 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DOCKER_DEPS_IMAGE_BUILD_FLAGS?=--no-cache=true
gen_cmake:
docker run -it --init --rm --memory-swap=-1 --ulimit core=-1 --name="overplus" \
--workdir=/srv \
--mount type=bind,source=${PWD},target=/src \
yanrongdocker/overplus_build_base:latest \
bash -c \
"mkdir -p /src/build && \
cd /src/build && \
cmake .."
build: gen_cmake
docker run -it --init --rm --memory-swap=-1 --ulimit core=-1 --name="overplus" \
--workdir=/src \
--mount type=bind,source=${PWD},target=/src \
yanrongdocker/overplus_build_base:latest \
bash -c \
"cd build && \
make "
build_image:
docker build ${DOCKER_DEPS_IMAGE_BUILD_FLAGS} -t yanrongdocker/overplus_docker:latest\
-f ./Dockerfile .
build-docker-deps-image:
docker build ${DOCKER_DEPS_IMAGE_BUILD_FLAGS} -t yanrongdocker/overplus_build_base:latest \
-f ./buildFileEnv .