Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
165 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.4.4 | ||
2.5.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# To build the dev environment. | ||
# docker build -t rapid7/build:ubuntu1204_32-omnibus . | ||
FROM i386/ubuntu:12.04 | ||
MAINTAINER Rapid7 Release Engineering <r7_re@rapid7.com> | ||
|
||
RUN sed -i 's/archive\.ubuntu/old-releases\.ubuntu/g' /etc/apt/sources.list | ||
|
||
RUN rm -fr /var/lib/apt/lists && \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
curl \ | ||
binutils-doc \ | ||
flex \ | ||
git \ | ||
ruby ruby-dev \ | ||
ccache \ | ||
fakeroot \ | ||
libreadline-dev \ | ||
libcurl4-openssl-dev \ | ||
libexpat1-dev \ | ||
libicu-dev \ | ||
reprepro \ | ||
sudo && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN git config --global user.email "packager@example.com" && \ | ||
git config --global user.name "Omnibus Packager" | ||
|
||
ENV JENKINS_HOME /home/jenkins | ||
RUN useradd -d "$JENKINS_HOME" -u 1001 -m -s /bin/sh jenkins | ||
|
||
RUN mkdir -p "$JENKINS_HOME" && \ | ||
cp ~/.gitconfig "$JENKINS_HOME" && \ | ||
chown -R jenkins "$JENKINS_HOME" && \ | ||
mkdir -p /var/cache/omnibus && \ | ||
mkdir -p /opt/metasploit-framework && \ | ||
chown jenkins /var/cache/omnibus && \ | ||
chown jenkins /opt/metasploit-framework | ||
RUN mkdir -p /etc/sudoers.d | ||
RUN echo "jenkins ALL=NOPASSWD: ALL" > /etc/sudoers.d/jenkins | ||
RUN chmod 440 /etc/sudoers.d/jenkins | ||
|
||
RUN su jenkins -c 'command curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \ | ||
command curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \ | ||
curl -L -sSL https://get.rvm.io | bash -s stable' | ||
|
||
RUN su jenkins -c "/bin/bash -l -c 'rvm requirements'" | ||
RUN su jenkins -c "linux32 /bin/bash -l -c 'rvm install 2.5.3'" | ||
RUN su jenkins -c "linux32 /bin/bash -l -c 'gem install bundler --no-ri --no-rdoc'" | ||
|
||
# pre-load the omnibus dependencies | ||
RUN su jenkins -c "/bin/bash -l -c 'cd ~/ && git clone https://github.com/rapid7/metasploit-omnibus.git && \ | ||
cd ~/metasploit-omnibus && bundle install --binstubs && cd ~/ && rm -fr metasploit-omnibus'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# To build the dev environment. | ||
# docker build -t rapid7/build:ubuntu1204_64-omnibus . | ||
FROM ubuntu:12.04.5 | ||
MAINTAINER Rapid7 Release Engineering <r7_re@rapid7.com> | ||
|
||
RUN sed -i 's/archive\.ubuntu/old-releases\.ubuntu/g' /etc/apt/sources.list | ||
|
||
RUN rm -fr /var/lib/apt/lists && \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
curl \ | ||
binutils-doc \ | ||
flex \ | ||
git \ | ||
ruby ruby-dev \ | ||
ccache \ | ||
fakeroot \ | ||
libreadline-dev \ | ||
libcurl4-openssl-dev \ | ||
libexpat1-dev \ | ||
libicu-dev \ | ||
reprepro \ | ||
sudo && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN git config --global user.email "packager@example.com" && \ | ||
git config --global user.name "Omnibus Packager" | ||
|
||
ENV JENKINS_HOME /home/jenkins | ||
RUN useradd -d "$JENKINS_HOME" -u 1001 -m -s /bin/sh jenkins | ||
|
||
RUN mkdir -p "$JENKINS_HOME" && \ | ||
cp ~/.gitconfig "$JENKINS_HOME" && \ | ||
chown -R jenkins "$JENKINS_HOME" && \ | ||
mkdir -p /var/cache/omnibus && \ | ||
mkdir -p /opt/metasploit-framework && \ | ||
chown jenkins /var/cache/omnibus && \ | ||
chown jenkins /opt/metasploit-framework | ||
RUN mkdir -p /etc/sudoers.d | ||
RUN echo "jenkins ALL=NOPASSWD: ALL" > /etc/sudoers.d/jenkins | ||
RUN chmod 440 /etc/sudoers.d/jenkins | ||
|
||
RUN su jenkins -c 'command curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \ | ||
command curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \ | ||
curl -L -sSL https://get.rvm.io | bash -s stable' | ||
|
||
RUN su jenkins -c "/bin/bash -l -c 'rvm requirements'" | ||
RUN su jenkins -c "/bin/bash -l -c 'rvm install 2.5.3'" | ||
RUN su jenkins -c "/bin/bash -l -c 'gem install bundler --no-ri --no-rdoc'" | ||
|
||
# pre-load the omnibus dependencies | ||
RUN su jenkins -c "/bin/bash -l -c 'cd ~/ && git clone https://github.com/rapid7/metasploit-omnibus.git && \ | ||
cd ~/metasploit-omnibus && bundle install --binstubs && cd ~/ && rm -fr metasploit-omnibus'" |