-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfabfile.py
More file actions
27 lines (21 loc) · 704 Bytes
/
fabfile.py
File metadata and controls
27 lines (21 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from fabric.api import *
@task
def deps():
local("docker pull debian:stretch")
@task
def build():
local("docker build -t jrabbit/taskd . --no-cache")
@task
def outdated():
local("docker run -it --rm --entrypoint bash jrabbit/taskd -c 'apt-get update && apt list --upgradable' ")
@task
def auto():
deps()
build()
@task
def push():
local("docker push jrabbit/taskd:latest")
@task
def debug():
local("gnutls-cli --x509keyfile pki/client.key.pem --x509certfile pki/client.cert.pem localhost -p 53589 --x509cafile ./pki/ca.cert.pem -r -V -d 99")
local("openssl s_client -connect localhost:53589 -cert pki/client.cert.pem -key pki/client.key.pem -CAfile pki/ca.cert.pem")