-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 2.08 KB
/
alpine-wf.yml
File metadata and controls
57 lines (52 loc) · 2.08 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
51
52
53
54
55
56
57
name: "zmap with alpine CI workflow"
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
zmap-ubuntu-latest-job:
name: "build zmap with alpine on ubuntu latest"
runs-on: ubuntu-latest
env:
distribution: "kalilinux" #https://hub.docker.com/r/ubuntu
version: "latest"
name: "alpine/zmap"
dockerfiledir: "dockerfiles"
dockerfilename: "Dockerfile.alpine.zmap"
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 zmap with alpine "
run: |
# destroyed afterwards (use --rm )
# all subsequent Dockerfile commands generate new images and the cache is not usedi
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}
# the input device is not a TTY
# docker run -it --rm --net=host ${name}:${version} -h
# docker run ${name}:${version} zmap -h
docker run --rm --net=host ${name}:${version} zmap -h
# List available probe modules
# IPv6 support
docker run --rm --net=host ${name}:${version} zmap --list-probe-modules
# docker run --rm --net=host ${name}:${version} zmap --probe-module=icmp6_echoscan
# docker run ${name}:${version} zmap -p 80 172.217.0.0/24 -o IPresults.csv # not OK