-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.6 KB
/
kali-zenmap-wf.yml
File metadata and controls
50 lines (45 loc) · 1.6 KB
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
name: "zenmap with kalilinux CI workflow"
on:
push:
branches: [ main ]
# schedule:
# - cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
zenmap-kalilinux-ubuntu-latest-job:
name: "build zenmap with ubuntu 16.04 on ubuntu latest"
runs-on: ubuntu-latest
env:
version: "latest"
name: "kali/zenmap"
dockerfiledir: "dockerfiles"
dockerfilename: "Dockerfile.kali.zenmap"
steps:
- uses: actions/checkout@v2
- name: "os fingerprinting"
run: |
hostnamectl status
lsb_release -a
lsb_release -d
cat /etc/lsb-release
cat /etc/issue
cat /etc/os-release
sudo apt-get install -y neofetch && neofetch
- name: "build zenmap with kalilinux"
run: |
# destroyed afterwards (use --rm )
# all subsequent Dockerfile commands generate new images and the cache is not usedi
set -xe
whoami
echo ${USER}
#Add current logged in user to the docker group.
sudo usermod -aG docker ${USER}
id ${USER}
docker build --no-cache --rm -t ${name}:${version} . --file ${dockerfiledir}/${dockerfilename}
docker image ls
docker image history ${name}:${version}
docker system df -v
docker image inspect ${name}:${version}
echo "################## ENTRYPOINT ##################"
docker inspect -f '{{.Config.Entrypoint}}' ${name}:${version}
echo "################## ENTRYPOINT ##################"
docker run ${name}:${version} -h