1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-26 17:41:08 +01:00

add dockerfile that we use for metasploit-payloads builds

This commit is contained in:
Brent Cook 2015-09-01 15:59:05 -05:00
parent cddc3f2001
commit 9001ac3553

48
docker/Dockerfile Normal file
View File

@ -0,0 +1,48 @@
# To build the dev environment.
# docker build -t rapid7/build:meterpreter
FROM ubuntu:14.04.2
MAINTAINER Brent Cook <bcook@rapid7.com> (@busterbcook)
ENV DEBIAN_FRONTEND noninteractive
# Other meterpreters
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get -y install software-properties-common && \
dpkg --add-architecture i386 && \
apt-add-repository ppa:ubuntu-wine && \
apt-get update && \
apt-get -y install \
wine php5-cli python python3 \
bison flex gcc gcc-multilib jam make wget \
ruby rake bundler git \
maven openjdk-7-jdk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Android NDK
RUN wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2 && \
tar -xvf android-ndk-r9d-linux-x86_64.tar.bz2 && \
mv android-ndk-r9d /usr/local/android-ndk
# Android SDK
RUN wget http://dl.google.com/android/android-sdk_r24-linux.tgz && \
tar -xvf android-sdk_r24-linux.tgz && \
rm android-sdk_r24-linux.tgz && \
mv android-sdk-linux /usr/local/android-sdk
RUN echo y | /usr/local/android-sdk/tools/android update sdk --filter tools --no-ui -a
RUN echo y | /usr/local/android-sdk/tools/android update sdk --filter platform-tools --no-ui -a
RUN echo y | /usr/local/android-sdk/tools/android update sdk --filter build-tools-23.0.0 --no-ui -a
RUN echo y | /usr/local/android-sdk/tools/android update sdk --filter android-10 --no-ui -a
ENV ANDROID_HOME /usr/local/android-sdk
ENV ANDROID_NDK_HOME /usr/local/android-ndk
ENV PATH $PATH:$ANDROID_HOME/tools
ENV PATH $PATH:$ANDROID_HOME/platform-tools
ENV PATH $PATH:$ANDROID_NDK_HOME
ENV JENKINS_HOME /var/jenkins_home
RUN useradd -d "$JENKINS_HOME" -u 1001 -m -s /bin/sh jenkins
VOLUME "$JENKINS_HOME"
RUN chown -R jenkins "$JENKINS_HOME"