Browse Source

Add actool pull and full build

master
Matthew Faltys 7 years ago
parent
commit
c7d94b6256
  1. 2
      .gitignore
  2. 10
      Makefile
  3. 51
      deps/manifest.json

2
.gitignore vendored

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

10
Makefile

@ -20,7 +20,7 @@ build_filesystem:
tar -czf rootfs.tar.gz * tar -czf rootfs.tar.gz *
mv filesystem.tmp/rootfs.tar.gz deps/ mv filesystem.tmp/rootfs.tar.gz deps/
aci_build_web: aci_build_web: pull_actool
cd deps/ && \ cd deps/ && \
mkdir -p stage.tmp/theme && \ mkdir -p stage.tmp/theme && \
wget -O stage.tmp/theme.tar.gz $(WEB_THEME) && \ wget -O stage.tmp/theme.tar.gz $(WEB_THEME) && \
@ -32,6 +32,8 @@ aci_build_web:
cp deps/settings.json seedpod-layout/rootfs/transmission/ cp deps/settings.json seedpod-layout/rootfs/transmission/
cp -R deps/stage.tmp/theme/ seedpod-layout/rootfs/usr/share/transmission/web/ cp -R deps/stage.tmp/theme/ seedpod-layout/rootfs/usr/share/transmission/web/
cp deps/run.sh seedpod-layout/rootfs/ cp deps/run.sh seedpod-layout/rootfs/
cp deps/manifest.json seedpod-layout/manifest
./appc-v0.8.7/actool build seedpod-layout seedpod.aci
docker_build: docker_build:
cd deps/ && \ cd deps/ && \
@ -57,9 +59,15 @@ docker_run:
-v ~/Downloads/transmission/incomplete:/transmission/incomplete:rw \ -v ~/Downloads/transmission/incomplete:/transmission/incomplete:rw \
$(IMAGE_NAME) $(IMAGE_NAME)
pull_actool:
wget https://github.com/appc/spec/releases/download/v0.8.7/appc-v0.8.7.tar.gz
tar -zxf appc-v0.8.7.tar.gz
clean: clean:
rm -rf deps/stage.tmp/ rm -rf deps/stage.tmp/
rm -rf seedpod-layout/ rm -rf seedpod-layout/
rm -rf appc-v0.8.7*
rm -rf seedpod.aci
@if [ -d "filesystem.tmp/" ]; then \ @if [ -d "filesystem.tmp/" ]; then \
$(OS_PERMS) rm -rf filesystem.tmp; \ $(OS_PERMS) rm -rf filesystem.tmp; \
fi fi

51
deps/manifest.json vendored

@ -0,0 +1,51 @@
{
"acKind": "ImageManifest",
"acVersion": "0.8.8",
"name": "unixvoid.com/seedpod",
"labels": [
{
"name": "version",
"value": "latest"
},
{
"name": "arch",
"value": "amd64"
},
{
"name": "os",
"value": "linux"
}
],
"app": {
"user": "root",
"group": "root",
"exec": [
"/run.sh"
],
"ports": [
{
"name": "web",
"protocol": "tcp",
"port": 9091
}
],
"mountPoints": [
{
"name": "downloads",
"path": "/transmission/downloads/",
"readOnly": false
},
{
"name": "incomplete",
"path": "/transmission/incomplete/",
"readOnly": false
}
]
},
"annotations": [
{
"name": "authors",
"value": "Matthew Faltys <mfaltys@gmail.com>"
}
]
}
Loading…
Cancel
Save