Commit Graph

64 Commits

Author SHA1 Message Date
ba9baa9362
Reap lxc-stop process to prevent zombification, closes #2 2020-04-13 21:58:22 +02:00
54c12759ee
Ensure that spoc-app installs layers in correct order, closes #1 2020-04-13 21:26:11 +02:00
0614c15e3e
Fix start-autostarted / stop-all 2020-04-10 20:19:53 +02:00
d70fe9756a
Stop all containers if install.sh fails 2020-04-06 09:50:41 +02:00
b3f2a4be70
Allow spoc-container start to pass a command 2020-04-05 20:34:40 +02:00
5929a1ea6b
Add OpenRC service unit 2020-04-04 22:03:00 +02:00
4e7921e85d
Fix line endings 2020-04-04 17:59:34 +02:00
ffa0927119
Add net.get_ip(container_name) 2020-04-04 12:21:25 +02:00
55ee03079f
Don't attempt to load app from local_repo while publishing 2020-04-03 23:46:35 +02:00
42bdace8f6
Don't import separate config constants, import whole module in case the constants are not so constant 2020-04-03 20:59:13 +02:00
794c46969b
Make config file name into a definition 2020-04-03 20:15:09 +02:00
7dd02f0e2a
Cache online_repo results indefinitely, but allow force reload 2020-04-03 19:42:06 +02:00
261f237dc7
Initialize public key for online repo only when needed 2020-04-03 15:57:10 +02:00
d3455b5dcd
Make app start/stop observable 2020-04-03 15:14:06 +02:00
929e8d9a60
Make observer optional for all tasks 2020-04-03 15:05:19 +02:00
eeab3cb54c
Make unpacking remove target directory, if it exists from previous failed installation 2020-04-03 14:36:49 +02:00
5f5bad4c20
Add missing import 2020-04-03 12:38:53 +02:00
b434e6af92
Cache online_repo listing for 10 seconds 2020-03-29 15:22:38 +02:00
7cf9a10b46
Populate App definition members dynamically 2020-03-29 14:58:16 +02:00
2de52c525b
Meaningless aesthetical fix 2020-03-28 10:19:10 +01:00
c8b0d02e8c
Rename State to ContainerState 2020-03-26 21:32:16 +01:00
c0ce525004
Use ActionQueue for app update/uninstall 2020-03-26 20:29:27 +01:00
6ee0912c79
Add option to start autostarted apps and stop all apps 2020-03-26 20:09:10 +01:00
cdb9768086
Allow App definition without full container definition 2020-03-26 19:47:15 +01:00
86a845a92d
Move autostart flag from containers to apps 2020-03-26 19:30:37 +01:00
6df8bf0616
Make sure the containers are stopped before uninstalling 2020-03-26 19:14:25 +01:00
d4bbce2dcf
Raise InvalidContainerStateError when await_state fails 2020-03-20 15:20:11 +01:00
44c1a8638d
Return cmd returncode from spoc-c exec 2020-03-19 21:59:23 +01:00
fc42131bb6
Fix dependency solving during image removal 2020-03-14 20:55:11 +01:00
c1e60a4adf
Create pub dirs with chmod 755 so local nginx can serve them 2020-03-13 21:33:28 +01:00
a6dd9ee3e4
Make the /usr/bin scripts executable 2020-03-13 13:15:00 +01:00
a936985df1
Fix typo 2020-03-12 23:30:09 +01:00
066457a5e9
Drop py3-bcrypt from dependencies 2020-03-12 23:27:43 +01:00
1e12d78efe
Implement app update 2020-03-12 22:19:29 +01:00
d1e5b83186
Implement app uninstall 2020-03-12 21:54:18 +01:00
ac4b7f9995
Implement exclusive locking with mtime-based cache 2020-03-12 21:54:06 +01:00
ebb45e502a
Specify file mount explicitly 2020-02-22 18:06:59 +01:00
cdfd0de2b6
Implement App download and installation 2020-02-22 16:32:49 +01:00
31a973ee03
Rename VOLUME_DIR to VOLUMES_DIR 2020-02-22 15:16:04 +01:00
e71514c6f9
Implement App basics and publish/unpublish 2020-02-19 23:13:46 +01:00
8a39528773
exclude sizes and hash from image definition, typo fixes 2020-02-19 23:11:53 +01:00
e32a76e174
Define own layer in image, simplify copy_tree + extractall, raise HTTP errors 2020-02-18 23:37:43 +01:00
9e9b3da0dd
Use methods as argparse actions, return definitions as shallow copies 2020-02-18 12:33:54 +01:00
5e1b153c3d
ActionQueue + DepSolver for image removal / cleanup 2020-02-18 10:48:57 +01:00
67f994f190
More download/unpack CLI progress 2020-02-17 23:50:20 +01:00
4497e1e793
Simple download/unpack CLI progress 2020-02-17 23:07:18 +01:00
dae215424e
Prototype implementation of ActionItem + observers 2020-02-17 01:05:00 +01:00
a320661727
Download image including parent layers 2020-02-14 23:17:03 +01:00
5abbd921cc
Use trailing slashes for URLs and paths, bunch of fixes 2020-02-14 19:58:19 +01:00
74655ed359
Cache the online repo for 5 minutes 2020-02-14 14:10:42 +01:00