From 81e982991b5e2e4db13ae46cf0cfa4c45d5479c1 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 3 Feb 2020 10:46:39 -0800 Subject: [PATCH] add kali rolling --- dockerbuild/Dockerfile.kali-rolling | 15 +++++++++++++++ dockerbuild/Makefile | 6 +++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 dockerbuild/Dockerfile.kali-rolling diff --git a/dockerbuild/Dockerfile.kali-rolling b/dockerbuild/Dockerfile.kali-rolling new file mode 100644 index 000000000..2825dffe4 --- /dev/null +++ b/dockerbuild/Dockerfile.kali-rolling @@ -0,0 +1,15 @@ +FROM kalilinux/kali-rolling:latest + +ARG go_pkg_url + +RUN apt-get update && apt-get upgrade -y && apt-get -y install build-essential curl ca-certificates devscripts dh-systemd cmake + +RUN curl -s -k $go_pkg_url -o go.tar.gz && \ + tar -C /usr/local -xzf go.tar.gz && \ + rm go.tar.gz + +RUN groupadd -g 1000 jenkins-build && useradd -u 1000 -g 1000 jenkins-build +RUN chmod 777 /home + +CMD ["/usr/bin/sshd", "-D"] + diff --git a/dockerbuild/Makefile b/dockerbuild/Makefile index 51ef576cc..543d45d5a 100644 --- a/dockerbuild/Makefile +++ b/dockerbuild/Makefile @@ -1,6 +1,6 @@ .PHONY: all -all: alpine centos debian ubuntu +all: alpine centos debian ubuntu kali-rolling alpine: @docker buildx build --build-arg go_pkg_url="https://dl.google.com/go/go1.13.6.linux-arm64.tar.gz" --platform linux/arm64 -f Dockerfile.alpine . -t ztbuild/alpine-arm64 --load @@ -102,3 +102,7 @@ ubuntu-eoan: @docker buildx build --build-arg go_pkg_url="https://dl.google.com/go/go1.13.6.linux-386.tar.gz" --platform linux/386 -f Dockerfile.ubuntu-eoan . -t ztbuild/ubuntu-eoan-i386 --load @docker buildx build --build-arg go_pkg_url="https://dl.google.com/go/go1.13.6.linux-ppc64le.tar.gz" --platform linux/ppc64le -f Dockerfile.ubuntu-eoan . -t ztbuild/ubuntu-eoan-ppc64le --load @docker buildx build --build-arg go_pkg_url="https://dl.google.com/go/go1.13.6.linux-s390x.tar.gz" --platform linux/s390x -f Dockerfile.ubuntu-eoan . -t ztbuild/ubuntu-eoan-s390x --load + +kali-rolling: + @docker buildx build --build-arg go_pkg_url="https://dl.google.com/go/go1.13.6.linux-amd64.tar.gz" --platform linux/amd64 -f Dockerfile.kali-rolling . -t ztbuild/kali-rolling-amd64 --load +