Skip to content

Commit

Permalink
Merge pull request ivre#1187 from p-l-/enh-docker
Browse files Browse the repository at this point in the history
Docker: update Nmap & add build script (pkg/)
  • Loading branch information
p-l- authored Oct 1, 2021
2 parents e4b5884 + 8fe372d commit c31f48e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN apt-get -q update && \
# #34 (https://github.com/nmap/nmap/issues/34) since we do not know
# which kernel version will be used
# ADD https://github.com/nmap/nmap/tarball/master ./nmap.tar.gz
ADD https://nmap.org/dist/nmap-7.91.tgz ./nmap.tar.gz
ADD https://nmap.org/dist/nmap-7.92.tgz ./nmap.tar.gz
RUN apt-get -q update && \
apt-get -qy --no-install-recommends install build-essential libssl-dev flex bison && \
tar zxf nmap.tar.gz && \
Expand Down
30 changes: 30 additions & 0 deletions pkg/builddockers
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#! /bin/sh

# This file is part of IVRE.
# Copyright 2011 - 2021 Pierre LALET <[email protected]>
#
# IVRE is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# IVRE is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with IVRE. If not, see <http://www.gnu.org/licenses/>.

cd `dirname $0`/../docker
docker pull debian:stable
docker pull debian:buster
for img in base client agent db web web-apache ; do
docker build --no-cache -t "ivre/$img" "$img" || break
done

# Uncomment to push images
# docker login
# for img in base client agent db web web-apache ; do
# docker push "ivre/$img"
# done

0 comments on commit c31f48e

Please sign in to comment.