diff options
author | Rob Austein <sra@hactrn.net> | 2019-02-15 04:36:09 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2019-02-15 04:36:09 +0000 |
commit | 462f33573500393d29111b78d1aa621f9beb8493 (patch) | |
tree | 51e2e35f101e476b3cd42935942e3a59cf3d35c8 | |
parent | f7bd5d48daaff0980fcccefcfbb884db611448a8 (diff) |
Might actually be working?
-rw-r--r-- | .dockerignore | 2 | ||||
-rwxr-xr-x | Builder | 2 | ||||
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | Makefile | 14 | ||||
-rwxr-xr-x | Ratinox | 2 |
5 files changed, 16 insertions, 6 deletions
diff --git a/.dockerignore b/.dockerignore index 7acbd49..aea2508 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,10 +1,12 @@ Builder +cryptech-builder-stage1.xz .git .gitignore *.log Makefile ratinox README.md +screenshots/*.png *.stamp Xilinx_ISE_DS_Lin_14.7_1015_1.tar Xilinx.lic @@ -24,4 +24,6 @@ ln -sf /bin/bash /bin/sh /cryptech-builder/Ratinox +chown -R builder:builder /home/builder + rm -rf /Xilinx_ISE_DS_Lin_14.7_1015_1 /home/builder/Xilinx.lic @@ -1,4 +1,4 @@ -FROM cryptech-builder:stage1 +FROM cryptech-builder:stage2 RUN echo 'deb http://deb.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list @@ -13,14 +13,20 @@ stage1.stamp: stage0.stamp Builder Ratinox --mount type=bind,source=$(abspath .),target=/cryptech-builder \ cryptech-builder:stage0 \ /cryptech-builder/Builder - docker commit cryptech-builder-stage1 cryptech-builder:stage1 + docker export cryptech-builder-stage1 | \ + xz -v >cryptech-builder-stage1.xz docker container rm cryptech-builder-stage1 touch $@ -stage2.stamp: stage1.stamp Dockerfile +stage2.stamp: stage1.stamp + docker rmi cryptech-builder:stage0 + docker import cryptech-builder-stage1.xz cryptech-builder:stage2 +# rm cryptech-builder-stage1.xz + touch $@ + +stage3.stamp: stage2.stamp Dockerfile docker build -t cryptech-builder . touch $@ clean: - rm -f *.stamp Xvfb_screen* - + rm -f *.stamp Xvfb_screen* cryptech-builder-stage1.xz @@ -17,7 +17,7 @@ def click(*coordinates): assert len(coordinates) in (0, 2) if coordinates: subprocess.check_call(("ratpoison", "-c", "ratwarp {:d} {:d}".format(*coordinates))) - shutil.copy(screencap_file, "{}.{:f}".format(screencap_file, time.time())) + shutil.copy(screencap_file, "{}.{:f}.xwd".format(screencap_file, time.time())) subprocess.check_call(("ratpoison", "-c", "ratclick")) with xvfbwrapper.Xvfb(fbdir = screencap_dir): |