Init project
This commit is contained in:
parent
de5a8de641
commit
88bdb77e83
10 changed files with 261 additions and 1 deletions
37
group_data/all.py
Normal file
37
group_data/all.py
Normal file
|
@ -0,0 +1,37 @@
|
|||
app = {
|
||||
'name': 'linkding',
|
||||
'deps': ['skopeo', 'curl'],
|
||||
'image': 'docker://sissbruecker/linkding:latest',
|
||||
}
|
||||
|
||||
undocker = {
|
||||
'url': 'https://git.sr.ht/~motiejus/undocker/refs/download/v1.0.2/undocker-linux-amd64-v1.0.2',
|
||||
'sha256': 'b937e69e774c530c080c1f6685763ca7db4dc58520a5a2054d111e1504f47688',
|
||||
'bin_path': '/usr/local/bin/undocker',
|
||||
'app_dst': f"/opt/{app['name']}",
|
||||
'cache': '/var/cache/undocker',
|
||||
}
|
||||
|
||||
unix_account = {
|
||||
'user': app['name'],
|
||||
'group': app['name'],
|
||||
'home': f"/home/{app['name']}",
|
||||
'shell': '/bin/false',
|
||||
}
|
||||
|
||||
data_directories = [
|
||||
f"{unix_account['home']}/data"
|
||||
]
|
||||
|
||||
systemd = {
|
||||
'Description': app['name'],
|
||||
'User': unix_account['user'],
|
||||
'Group': unix_account['group'],
|
||||
'EnvironmentFile': f"/etc/{app['name']}.env",
|
||||
'WorkingDirectory': f"/etc/{app['name']}",
|
||||
'RootDirectory': f"{undocker['app_dst']}",
|
||||
'ReadWritePaths': '+/etc/linkding',
|
||||
'BindPaths': f"{data_directories[0]}:/etc/linkding/data",
|
||||
'BindReadOnlyPaths': '/etc/resolv.conf /etc/hosts',
|
||||
'ExecStart': '/etc/linkding/bootstrap.sh',
|
||||
}
|
Reference in a new issue