Browse Source

Add actool pull and full build

Matthew Faltys 1 year ago
parent
commit
c7d94b6256
3 changed files with 62 additions and 1 deletions
  1. 2 0
      .gitignore
  2. 9 1
      Makefile
  3. 51 0
      deps/manifest.json

+ 2 - 0
.gitignore

@@ -3,3 +3,5 @@ deps/rootfs.tar.gz
3 3
 deps/stage.tmp
4 4
 filesystem.tmp/
5 5
 seedpod-layout/
6
+appc-v0.8.7*
7
+seedpod.aci

+ 9 - 1
Makefile

@@ -20,7 +20,7 @@ build_filesystem:
20 20
 		tar -czf rootfs.tar.gz *
21 21
 	mv filesystem.tmp/rootfs.tar.gz deps/
22 22
 
23
-aci_build_web:
23
+aci_build_web: pull_actool
24 24
 	cd deps/ && \
25 25
 		mkdir -p stage.tmp/theme && \
26 26
 		wget -O stage.tmp/theme.tar.gz $(WEB_THEME) && \
@@ -32,6 +32,8 @@ aci_build_web:
32 32
 	cp deps/settings.json seedpod-layout/rootfs/transmission/
33 33
 	cp -R deps/stage.tmp/theme/ seedpod-layout/rootfs/usr/share/transmission/web/
34 34
 	cp deps/run.sh seedpod-layout/rootfs/
35
+	cp deps/manifest.json seedpod-layout/manifest
36
+	./appc-v0.8.7/actool build seedpod-layout seedpod.aci
35 37
 
36 38
 docker_build:
37 39
 	cd deps/ && \
@@ -57,9 +59,15 @@ docker_run:
57 59
 		-v ~/Downloads/transmission/incomplete:/transmission/incomplete:rw \
58 60
 		$(IMAGE_NAME)
59 61
 
62
+pull_actool:
63
+	wget https://github.com/appc/spec/releases/download/v0.8.7/appc-v0.8.7.tar.gz
64
+	tar -zxf appc-v0.8.7.tar.gz
65
+
60 66
 clean:
61 67
 	rm -rf deps/stage.tmp/
62 68
 	rm -rf seedpod-layout/
69
+	rm -rf appc-v0.8.7*
70
+	rm -rf seedpod.aci
63 71
 	@if [ -d "filesystem.tmp/" ]; then \
64 72
 		$(OS_PERMS) rm -rf filesystem.tmp; \
65 73
 	fi

+ 51 - 0
deps/manifest.json

@@ -0,0 +1,51 @@
1
+{
2
+    "acKind": "ImageManifest",
3
+    "acVersion": "0.8.8",
4
+    "name": "unixvoid.com/seedpod",
5
+    "labels": [
6
+        {
7
+            "name": "version",
8
+            "value": "latest"
9
+        },
10
+        {
11
+            "name": "arch",
12
+            "value": "amd64"
13
+        },
14
+        {
15
+            "name": "os",
16
+            "value": "linux"
17
+        }
18
+    ],
19
+    "app": {
20
+        "user": "root",
21
+        "group": "root",
22
+        "exec": [
23
+            "/run.sh"
24
+        ],
25
+        "ports": [
26
+        {
27
+            "name": "web",
28
+            "protocol": "tcp",
29
+            "port": 9091
30
+        }
31
+        ],
32
+    	"mountPoints": [
33
+    	    {
34
+    	        "name": "downloads",
35
+    	        "path": "/transmission/downloads/",
36
+    	        "readOnly": false
37
+    	    },
38
+    	    {
39
+    	        "name": "incomplete",
40
+    	        "path": "/transmission/incomplete/",
41
+    	        "readOnly": false
42
+    	    }
43
+    	]
44
+    },
45
+    "annotations": [
46
+        {
47
+        "name": "authors",
48
+        "value": "Matthew Faltys <mfaltys@gmail.com>"
49
+    }
50
+    ]
51
+}