forked from mnakada/atomcam_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
19 lines (15 loc) · 749 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Makefile
.SILENT:
build:
-docker pull atomtools/atomtools:latest | awk '{ print } /Downloaded newer image/ { system("docker-compose down"); }'
docker-compose ls | grep atomcam_tools > /dev/null || docker-compose up -d
docker-compose exec builder /src/buildscripts/build_all | tee rebuild_`date +"%Y%m%d_%H%M%S"`.log
build-local:
docker-compose ls | grep atomcam_tools > /dev/null || docker-compose up -d
docker-compose exec builder /src/buildscripts/build_all | tee rebuild_`date +"%Y%m%d_%H%M%S"`.log
docker-build:
# build container
docker build -t atomtools/atomtools . | tee docker-build_`date +"%Y%m%d_%H%M%S"`.log
login:
docker-compose ls | grep atomcam_tools > /dev/null || docker-compose up -d
docker-compose exec builder bash