blob: 8ebb87b842a6fcbc52bb67ac4a07df2bdb295320 (
plain) (
blame)
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
30
31
32
|
all: stage0.stamp stage1.stamp stage2.stamp stage3.stamp
stage0.stamp:
mkdir -p fs/cryptech-builder
sudo /usr/sbin/debootstrap --foreign jessie fs
sudo tar -C fs -xf Xilinx_ISE_DS_Lin_14.7_1015_1.tar
sudo tar -C fs -c . | docker import - cryptech-builder:stage0
sudo rm -rf fs
touch $@
stage1.stamp: stage0.stamp Builder Ratinox
docker run -it --name cryptech-builder-stage1 \
--mount type=bind,source=$(abspath .),target=/cryptech-builder \
cryptech-builder:stage0 \
/cryptech-builder/Builder
docker export cryptech-builder-stage1 | \
xz -v >cryptech-builder-stage1.xz
docker container rm cryptech-builder-stage1
touch $@
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* cryptech-builder-stage1.xz
|