File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " zenmap with kalilinux CI workflow"
2+
3+
4+ on :
5+ push :
6+ branches : [ main ]
7+ # schedule:
8+ # - cron: '0 0 1 * *' ##execution of a task in the first minute of the month
9+
10+
11+ jobs :
12+
13+ zenmap-kalilinux-ubuntu-latest-job :
14+ name : " build zenmap with ubuntu 16.04 on ubuntu latest"
15+ runs-on : ubuntu-latest
16+ env :
17+ version : " latest"
18+ name : " kali/zenmap"
19+ dockerfiledir : " dockerfiles"
20+ dockerfilename : " Dockerfile.kali.zenmap"
21+ steps :
22+ - uses : actions/checkout@v2
23+ - name : " os fingerprinting"
24+ run : |
25+ hostnamectl status
26+ lsb_release -a
27+ lsb_release -d
28+ cat /etc/lsb-release
29+ cat /etc/issue
30+ cat /etc/os-release
31+ sudo apt-get install -y neofetch && neofetch
32+ - name : " build zenmap with kalilinux"
33+ run : |
34+ # destroyed afterwards (use --rm )
35+ # all subsequent Dockerfile commands generate new images and the cache is not usedi
36+ set -xe
37+ whoami
38+ echo ${USER}
39+ #Add current logged in user to the docker group.
40+ sudo usermod -aG docker ${USER}
41+ id ${USER}
42+ docker build --no-cache --rm -t ${name}:${version} . --file ${dockerfiledir}/${dockerfilename}
43+ docker image ls
44+ docker image history ${name}:${version}
45+ docker system df -v
46+ docker image inspect ${name}:${version}
47+ echo "################## ENTRYPOINT ##################"
48+ docker inspect -f '{{.Config.Entrypoint}}' ${name}:${version}
49+ echo "################## ENTRYPOINT ##################"
50+ docker run ${name}:${version} -h
Original file line number Diff line number Diff line change 11# zenmap-githubactions
2- zenmap nmap githubactions
2+
Original file line number Diff line number Diff line change 1+ FROM kalilinux/kali-rolling
2+ LABEL org.opencontainers.image.authors="githubfoam"
3+
4+
5+ RUN set -xe && \
6+ export DEBIAN_FRONTEND=noninteractive && \
7+ apt-get -qq update && \
8+ apt-get -qqy upgrade
9+
10+ RUN set -xe && \
11+ apt-get install zenmap nmap etherape -y
12+
You can’t perform that action at this time.
0 commit comments