From 9e26b392cfd9866f6ba0bf855e177018110803c5 Mon Sep 17 00:00:00 2001 From: Matthew Faltys Date: Wed, 5 Jul 2017 13:51:53 -0500 Subject: [PATCH] Add initial aci build --- .gitignore | 1 + Makefile | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c238c1d..c159971 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ deps/creds.x deps/rootfs.tar.gz deps/stage.tmp filesystem.tmp/ +seedpod-layout/ diff --git a/Makefile b/Makefile index 616d29d..4b677f2 100755 --- a/Makefile +++ b/Makefile @@ -20,9 +20,18 @@ build_filesystem: tar -czf rootfs.tar.gz * mv filesystem.tmp/rootfs.tar.gz deps/ -aci_build: +aci_build_web: cd deps/ && \ - mkdir -p stage.tmp/seedpod-layout/ + mkdir -p stage.tmp/theme && \ + wget -O stage.tmp/theme.tar.gz $(WEB_THEME) && \ + tar -xzf stage.tmp/theme.tar.gz -C stage.tmp/theme --strip-components 1 + mkdir -p seedpod-layout/rootfs/ + tar -xzf deps/rootfs.tar.gz -C seedpod-layout/rootfs/ + cp deps/config.ovpn seedpod-layout/rootfs/ + cp deps/creds.x seedpod-layout/rootfs/ + cp deps/settings.json seedpod-layout/rootfs/transmission/ + cp -R deps/stage.tmp/theme/ seedpod-layout/rootfs/usr/share/transmission/web/ + cp deps/run.sh seedpod-layout/rootfs/ docker_build: cd deps/ && \ @@ -49,7 +58,8 @@ docker_run: $(IMAGE_NAME) clean: - rm -rf deps/stage.tmp + rm -rf deps/stage.tmp/ + rm -rf seedpod-layout/ @if [ -d "filesystem.tmp/" ]; then \ $(OS_PERMS) rm -rf filesystem.tmp; \ fi