9 changed files with 97 additions and 7 deletions
			
			
		@ -0,0 +1,11 @@
					 | 
				
			||||
[Unit] | 
				
			||||
Description=automod of all lorez | 
				
			||||
 | 
				
			||||
[Service] | 
				
			||||
ExecStart=/usr/bin/rkt run \ | 
				
			||||
  --net=host \ | 
				
			||||
  --volume redis,kind=host,source=/tmp/dump.rdb \ | 
				
			||||
  unixvoid.com/smpldbot | 
				
			||||
 | 
				
			||||
[Install] | 
				
			||||
WantedBy=multi-user.target | 
				
			||||
@ -0,0 +1,44 @@
					 | 
				
			||||
{ | 
				
			||||
    "acKind": "ImageManifest", | 
				
			||||
    "acVersion": "0.7.1", | 
				
			||||
    "name": "unixvoid.com/lorebot", | 
				
			||||
    "labels": [ | 
				
			||||
        { | 
				
			||||
            "name": "version", | 
				
			||||
            "value": "latest" | 
				
			||||
        }, | 
				
			||||
        { | 
				
			||||
            "name": "arch", | 
				
			||||
            "value": "amd64" | 
				
			||||
        }, | 
				
			||||
        { | 
				
			||||
            "name": "os", | 
				
			||||
            "value": "linux" | 
				
			||||
        } | 
				
			||||
    ], | 
				
			||||
    "app": { | 
				
			||||
        "user": "root", | 
				
			||||
        "group": "root", | 
				
			||||
        "exec": [ | 
				
			||||
            "/run.sh" | 
				
			||||
        ], | 
				
			||||
        "mountPoints": [ | 
				
			||||
        { | 
				
			||||
            "name": "redis", | 
				
			||||
            "path": "/redisbackup/", | 
				
			||||
            "readOnly": false | 
				
			||||
        }, | 
				
			||||
        { | 
				
			||||
            "name": "auth", | 
				
			||||
            "path": "/.auth", | 
				
			||||
            "readOnly": false | 
				
			||||
        } | 
				
			||||
        ] | 
				
			||||
    }, | 
				
			||||
    "annotations": [ | 
				
			||||
        { | 
				
			||||
        "name": "authors", | 
				
			||||
        "value": "Matthew Faltys <mfaltys@gmail.com>" | 
				
			||||
    } | 
				
			||||
    ] | 
				
			||||
} | 
				
			||||
@ -0,0 +1,4 @@
					 | 
				
			||||
daemonize yes | 
				
			||||
dbfilename dump.rdb | 
				
			||||
dir /redisbackup/ | 
				
			||||
save 30 1 | 
				
			||||
									
										Binary file not shown.
									
								
							
						@ -1,10 +1,5 @@
					 | 
				
			||||
#!/bin/sh | 
				
			||||
 | 
				
			||||
echo "daemonize yes" > /redis.conf | 
				
			||||
echo "dbfilename dump.rdb" >> /redis.conf | 
				
			||||
echo "dir /redisbackup/" >> /redis.conf | 
				
			||||
echo "save 30 1" >> /redis.conf | 
				
			||||
 | 
				
			||||
redis-server /redis.conf | 
				
			||||
 | 
				
			||||
/lorebot $@ | 
				
			||||
					 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue