-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dockerfunc
68 lines (51 loc) · 1.81 KB
/
.dockerfunc
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# vim: ft=sh
dclean() {
docker rm $(docker ps -qa 2>/dev/null) 2>/dev/null
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null
}
ctop() {
docker run -ti --name ctop --rm -v /var/run/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop:latest
}
dockerfile_lint() {
docker run -it --rm --priviledge -v 'pwd':/root/ projectatomic/dockerfile-lint dockerfile_lint -f $0
}
dockerimage_lint() {
docker run -it --rm --priviledge -v 'pwd':/root/ projectatomic/dockerfile-lint dockerfile_lint image $0
}
#hadolint() {
#docker run --rm -i lukasmartinelli/hadolint < $0
#}
#packer() {
#docker run -it --rm hashicorp/packer:light $0
#}
# jf() {
# docker run -v ~/.jfrog:/root/.jfrog docker.bintray.io/jfrog/jfrog-cli-go:latest jfrog $0
# }
# neuron() {
# docker run --rm -it -v ${PWD}:/notes sridca/neuron neuron $*
# }
terraform-compliance() {
docker run --rm -v $(pwd):/target -i -t eerkunt/terraform-compliance "$@"
}
excalidraw-cli() {
docker run --rm -it -v "$PWD":/data excalidraw-cli "$@"
}
excalidraw-serve() {
docker run --rm -it --name excalidraw -p 3000:80 excalidraw/excalidraw:latest
}
asciidoctor() {
docker run -it --rm -v .:/documents/ asciidoctor/docker-asciidoctor asciidoctor "$@"
}
asciidoctor-reducer() {
docker run -it --rm -v .:/documents/ asciidoctor/docker-asciidoctor asciidoctor-reducer "$@"
}
asciidoctor-pdf() {
docker run -it --rm -v .:/documents/ asciidoctor/docker-asciidoctor asciidoctor-pdf "$@"
}
asciidoctor-epub3() {
docker run -it --rm -v .:/documents/ asciidoctor/docker-asciidoctor asciidoctor-epub3 "$@"
}
asciidoctor-revealjs() {
docker run -it --rm -v .:/documents/ asciidoctor/docker-asciidoctor asciidoctor-revealjs "$@"
}