-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.73 KB
/
fedora.yml
File metadata and controls
47 lines (43 loc) · 1.73 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
name: "zmap with fedora CI workflow"
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
zmap-fedora-ubuntu-latest-job:
name: "zmap with fedora on ubuntu latest"
runs-on: ubuntu-latest
env:
distribution: "archlinux" #https://hub.docker.com/_/archlinux
version: "latest"
name: "fedora/zmap"
dockerfiledir: "dockerfiles"
dockerfilename: "Dockerfile.fedora.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
- name: "build zmap with fedora"
run: |
# destroyed afterwards (use --rm )
# all subsequent Dockerfile commands generate new images and the cache is not used
sudo 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}
docker run ${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