Unverified Commit 39832977 authored by Lorenzo "Palinuro" Faletra's avatar Lorenzo "Palinuro" Faletra
Browse files

update docker template files

parent f73bd84f
# parrot
# Parrot Security rolling
Official Parrot Security image with basic security tools.
## Install/Update from docker cloud
```docker pull parrotsec/parrot```
```docker pull parrotsec/security```
## Install/Update from local Dockerfile
```git clone https://dev.parrotsec.org/parrot/docker-images && cd docker-images```
```git clone https://nest.parrotsec.org/parrot/docker-images && cd docker-images```
```docker build -t parrot[:version] parrot```
```docker build -t parrot-security[:version] security/rolling```
## Start a new instance
changes are discarded on exit
public image from docker cloud
```docker run -ti --network host parrotsec/parrot```
```docker run -ti --network host parrotsec/security```
local image from Dockerfile
```docker run -ti -network host parrot```
```docker run -ti -network host security/rolling```
# parrot-core
Official Parrot Security Base system without tools.
# Parrot Core rolling
Official Parrot Core image.
## Install/Update from docker cloud
```docker pull parrotsec/parrot-core```
```docker pull parrotsec/core```
## Install/Update from local Dockerfile
```git clone https://dev.parrotsec.org/parrot/docker-images && cd docker-images```
```git clone https://nest.parrotsec.org/parrot/docker-images && cd docker-images```
```docker build -t parrot-core[:version] parrot-core```
```docker build -t parrot-core[:version] core/rolling```
## Start a new instance
changes are discarded on exit
public image from docker cloud
```docker run -ti --network host parrotsec/parrot-core```
```docker run -ti --network host parrotsec/core```
local image from Dockerfile
```docker run -ti -network host parrot-core```
```docker run -ti -network host core/rolling```
# metasploit
Parrot Security Metasploit bundle
# Parrot Core LTS
Official Parrot Core image.
## Install/Update from docker cloud
```docker pull parrotsec/metasploit```
```docker pull parrotsec/core```
## Install/Update from local Dockerfile
```git clone https://dev.parrotsec.org/parrot/docker-images && cd docker-images```
```git clone https://nest.parrotsec.org/parrot/docker-images && cd docker-images```
```docker build -t metasploit[:version] metasploit```
```docker build -t parrot-core[:version] core/lts```
## Start a new instance
changes are discarded on exit
public image from docker cloud
```docker run -ti --network host parrotsec/metasploit```
```docker run -ti --network host parrotsec/core```
local image from Dockerfile
```docker run -ti -network host metasploit```
```docker run -ti -network host core/lts```
FROM parrotsec/parrot-core:latest
FROM parrotsec/core:rolling
MAINTAINER Lorenzo "Palinuro" Faletra (palinuro@linux.it)
ENV DEBIAN_FRONTEND noninteractive
ENV VERSION 4.7
ENV VERSION 4.8
# Install components
RUN apt-get update; apt-get -y dist-upgrade;apt-get -y install sbuild dh-autoreconf debhelper devscripts moreutils sudo gnupg2 dirmngr; rm -rf /var/lib/apt/lists/*
RUN apt-get update; apt-get -y dist-upgrade; rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/share/man/man1/ \
&& apt-get install -y -q --allow-downgrades --no-install-recommends \
build-essential curl devscripts equivs git-buildpackage git \
lsb-release make autoconf automake libtool zsh \
sbuild dh-autoreconf debhelper moreutils sudo
&& apt-get clean
&& ; rm -rf /var/lib/apt/lists/*
# Add builder user and perform hacks
RUN useradd -ms /bin/bash builder;adduser builder sbuild;adduser root sbuild;mkdir -p /etc/sudoers.d;echo "builder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd;echo true > /sbin/modprobe;chmod +x /sbin/modprobe;sed -i 's/mount -t proc proc/mount -t --bind \/proc/' /usr/bin/sbuild-createchroot
# Copy scripts
COPY init.sh /init.sh
COPY entrypoint.sh /entrypoint.sh
COPY ../init.sh /init.sh
COPY ../entrypoint.sh /entrypoint.sh
# Setup environment
RUN chmod 775 /init.sh /entrypoint.sh; /init.sh
# Switch build user and prepare work dir
USER builder
WORKDIR /home/builder
RUN bash /init.sh
# USER builder
# WORKDIR /home/builder
# RUN bash /init.sh
WORKDIR /root
ENTRYPOINT ["/tini", "--"]
CMD /bin/bash
##
## WORK IN FUCKING PROGRESS
......
FROM dyne/devuan:beowulf
MAINTAINER Lorenzo "Palinuro" Faletra (palinuro@linux.it)
ENV DEBIAN_FRONTEND noninteractive
ENV VERSION 4.8-1
# Prepare environment
RUN apt-get update;apt-get -y --no-install-recommends install dirmngr gnupg apt-utils wget ca-certificates; rm -rf /var/lib/apt/lists/* #;echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
# Migrate from Debian to Parrot
RUN echo > /etc/apt/sources.list;\
echo "deb https://mirror.parrot.sh/parrot lts main contrib non-free" > /etc/apt/sources.list.d/parrot.list;\
echo "deb https://mirror.parrot.sh/parrot lts-security main contrib non-free" >> /etc/apt/sources.list.d/parrot.list;\
wget -qO - https://deb.parrot.sh/parrot/misc/parrotsec.gpg | apt-key add -;\
apt-get update;\
apt-get -y dist-upgrade;\
apt-get -y autoremove;\
rm -rf /var/lib/apt/lists/*
# Install Parrot Core
RUN apt-get update;\
apt-get -y --no-install-recommends --no-install-suggests install parrot-core base-files;\
apt-get -y autoremove;\
apt-get clean;\
apt-get autoclean;\
rm -rf /var/lib/apt/lists/*
ENTRYPOINT bash $@
FROM debian:buster
FROM debian:testing-slim
MAINTAINER Lorenzo "Palinuro" Faletra (palinuro@linux.it)
ENV DEBIAN_FRONTEND noninteractive
ENV VERSION 4.7-3
ENV VERSION 4.8-1
# Prepare environment
RUN apt-get update;apt-get -y --no-install-recommends install apt-transport-https dirmngr gnupg apt-utils wget ca-certificates; rm -rf /var/lib/apt/lists/* #;echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
RUN apt-get update;apt-get -y --no-install-recommends install dirmngr gnupg apt-utils wget ca-certificates; rm -rf /var/lib/apt/lists/* #;echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
# Migrate from Debian to Parrot
RUN echo > /etc/apt/sources.list;\
......@@ -13,12 +13,13 @@ RUN echo > /etc/apt/sources.list;\
wget -qO - https://deb.parrot.sh/parrot/misc/parrotsec.gpg | apt-key add -;\
apt-get update;\
apt-get -y dist-upgrade;\
apt-get -y autoremove;\
rm -rf /var/lib/apt/lists/*
# Install Parrot Core
RUN apt-get update;\
apt-get -y --no-install-recommends --no-install-suggests install parrot-core apt-parrot base-files;\
apt-get -y --no-install-recommends --no-install-suggests install parrot-core base-files;\
apt-get -y autoremove;\
apt-get clean;\
apt-get autoclean;\
......
FROM parrotsec/parrot-core:latest
FROM parrotsec/core:lts
MAINTAINER Lorenzo "Palinuro" Faletra (palinuro@linux.it)
ENV DEBIAN_FRONTEND noninteractive
ENV VERSION 4.7-1
ENV VERSION 4.8-1
# Install components
RUN apt-get update; apt-get -y dist-upgrade;apt-get -y install parrot-pico;apt-get -y install parrot-mini parrot-tools-cloud; rm -rf /var/lib/apt/lists/*
......
FROM parrotsec/core:rolling
MAINTAINER Lorenzo "Palinuro" Faletra (palinuro@linux.it)
ENV DEBIAN_FRONTEND noninteractive
ENV VERSION 4.8-1
# Install components
RUN apt-get update; apt-get -y dist-upgrade;apt-get -y install parrot-pico;apt-get -y install parrot-mini parrot-tools-cloud; rm -rf /var/lib/apt/lists/*
ENTRYPOINT bash $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment