aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2019-02-14 14:40:54 +0000
committerRob Austein <sra@hactrn.net>2019-02-14 14:40:54 +0000
commit1310e0b5635ee2bd4215a2fbfaa23b7d15e0377c (patch)
tree7ea71bbfd4b7e03627f1eed46a34937bf57f511a
parent6f702a880c0c8300385945afead0a8e8d8236adc (diff)
Install now working but not licensing
-rwxr-xr-xBuilder17
-rwxr-xr-xBuilder27
-rw-r--r--Makefile6
3 files changed, 10 insertions, 10 deletions
diff --git a/Builder1 b/Builder1
index 5285458..96ac1f1 100755
--- a/Builder1
+++ b/Builder1
@@ -15,3 +15,10 @@ apt-get install -y \
python-xvfbwrapper \
ratpoison \
sudo
+
+/cryptech-builder/ratinox ise-install
+
+rm -rf /Xilinx_ISE_DS_Lin_14.7_1015_1
+
+adduser --disabled-password --gecos 'Cryptech Build Bot' --shell /bin/sh builder
+echo >/etc/sudoers.d/builder 'builder ALL = (ALL) NOPASSWD: SETENV: ALL'
diff --git a/Builder2 b/Builder2
index c464435..fdbb7fb 100755
--- a/Builder2
+++ b/Builder2
@@ -2,13 +2,6 @@
set -ex
-/cryptech-builder/ratinox ise-install
-
-rm -rf /Xilinx_ISE_DS_Lin_14.7_1015_1
-
-adduser --disabled-password --gecos 'Cryptech Build Bot' --shell /bin/sh builder
-echo >/etc/sudoers.d/builder 'builder ALL = (ALL) NOPASSWD: SETENV: ALL'
-
install -o builder -g builder /cryptech-builder/Xilinx.lic /home/builder/Xilinx.lic
sudo -u builder /cryptech-builder/ratinox license-user
diff --git a/Makefile b/Makefile
index 6e8b401..2029ea1 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ stage0.stamp:
sudo rm -rf fs
touch $@
-stage1.stamp: stage0.stamp
+stage1.stamp: stage0.stamp Builder1
docker run -it --name cryptech-builder-stage1 \
--mount type=bind,source=$(abspath .),target=/cryptech-builder \
cryptech-builder:stage0 \
@@ -17,7 +17,7 @@ stage1.stamp: stage0.stamp
docker container rm cryptech-builder-stage1
touch $@
-stage2.stamp: stage1.stamp
+stage2.stamp: stage1.stamp Builder2
docker run -it --name cryptech-builder-stage2 \
--mount type=bind,source=$(abspath .),target=/cryptech-builder \
cryptech-builder:stage1 \
@@ -26,7 +26,7 @@ stage2.stamp: stage1.stamp
docker container rm cryptech-builder-stage2
touch $@
-stage3.stamp: stage2.stamp
+stage3.stamp: stage2.stamp Dockerfile
docker build -t cryptech-builder .
touch $@