blob: 84fcd7c2ec40d695388b4f01c5c5eeac74aec7b3 (
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
|
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 commit cryptech-builder-stage1 cryptech-builder:stage1
docker container rm cryptech-builder-stage1
touch $@
stage2.stamp: stage1.stamp Dockerfile
docker build -t cryptech-builder .
touch $@
clean:
rm -f *.stamp Xvfb_screen*
|