Skip to content

Commit 6e5fa30

Browse files
author
Your Name
committed
init
1 parent 1c13d3f commit 6e5fa30

3 files changed

Lines changed: 63 additions & 1 deletion

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# zenmap-githubactions
2-
zenmap nmap githubactions
2+

dockerfiles/Dockerfile.kali.zenmap

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+

0 commit comments

Comments
 (0)