1194
|
1 SERVICE=rfid
|
|
2
|
|
3 build_image:
|
|
4 rm -rf tmp_ctx
|
|
5 mkdir -p tmp_ctx
|
|
6 cp -a Dockerfile ../../lib/*.py *.py *.txt *.html MFRC522-python tmp_ctx
|
|
7 docker build --network=host -t bang6:5000/$(SERVICE)_x86:latest tmp_ctx
|
|
8 docker push bang6:5000/$(SERVICE)_x86:latest
|
|
9 rm -rf tmp_ctx
|
|
10
|
|
11
|
|
12 build_image_pi:
|
|
13 rm -rf tmp_ctx
|
|
14 mkdir -p tmp_ctx
|
|
15 cp -a Dockerfile.pi ../../lib/*.py *.py *.txt *.html MFRC522-python tmp_ctx
|
|
16 docker build --file Dockerfile.pi --network=host -t bang6:5000/$(SERVICE)_pi:latest tmp_ctx
|
|
17 docker push bang6:5000/$(SERVICE)_pi:latest
|
|
18 rm -rf tmp_ctx
|
|
19
|
|
20 shell:
|
|
21 docker run --rm -it --cap-add SYS_PTRACE --net=host bang6:5000/$(SERVICE)_x86:latest /bin/sh
|
|
22
|
|
23 local_run:
|
|
24 docker run --rm -it --net=host bang6:5000/$(SERVICE)_x86:latest
|