Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Security-Services-Code-Checking
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ComputerSecurity
Security-Services-Code-Checking
Commits
bd25f3af
There was a problem fetching the pipeline summary.
Unverified
Commit
bd25f3af
authored
8 years ago
by
Vincent Brillault
Browse files
Options
Downloads
Patches
Plain Diff
Use fewer docker steps, remove archives
parent
7020b163
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+59
-114
59 additions, 114 deletions
Dockerfile
with
59 additions
and
114 deletions
Dockerfile
+
59
−
114
View file @
bd25f3af
...
...
@@ -11,150 +11,95 @@
FROM
centos:latest
MAINTAINER
"CERN IT-DI-CSO <computer.security@cern.ch>"
#
# Helpful variables
#
ENV
basedir /opt
#
# Enable extra repositories
#
RUN
yum
-y
install
epel-release
#
# Update the software and install basic development tools
#
RUN
yum
-y
update
RUN
yum
-y
groups
mark convert
RUN
yum
-y
groupinstall
'Development Tools'
#
# Install Java development packages
#
RUN
yum
-y
install
java-1.8.0-openjdk java-1.8.0-openjdk-devel
#
# Install Perl development packages
#
RUN
yum
-y
install
perl perl-devel
#
# Install Python development packages
#
RUN
yum
-y
install
python python-devel
RUN
yum
-y
install
python-flake8 python-pep8
#
# Install Ruby development packages
#
RUN
yum
-y
install
ruby ruby-devel
#
# Install Python PIP
#
RUN
yum
-y
install
python-pip
RUN
pip
install
--upgrade
pip
#
# Install general useful software
#
RUN
yum
-y
install
wget unzip unrar
sudo
RUN
yum
-y
install
p7zip p7zip-plugins
RUN
yum
-y
install
htop vim
#
# Install dependencies for RATS
#
RUN
yum
-y
install
expat expat-devel
RUN
yum
-y
install
flex flex-devel
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Install with YUM:
# - Epel Repo
# - Basic development tools (3)
# - Java development packages
# - Perl development packages
# - Python development packages (2)
# - Ruby development packages
# - Python PIP
# - General useful software (3)
# - Dependencies for RATS (2: expat expat-devel & flex flex-devel)
# - Perl::Critic
# - PyChecker
# - PyLint
#
RUN
yum
-y
install
epel-release
&&
\
yum
-y
update
&&
\
yum
-y
groups
mark convert
&&
\
yum
-y
groupinstall
'Development Tools'
&&
\
yum
-y
install
java-1.8.0-openjdk java-1.8.0-openjdk-devel
&&
\
yum
-y
install
perl perl-devel
&&
\
yum
-y
install
python python-devel
&&
\
yum
-y
install
python-flake8 python-pep8
&&
\
yum
-y
install
ruby ruby-devel
&&
\
yum
-y
install
python-pip
&&
\
yum
-y
install
wget unzip unrar
sudo
&&
\
yum
-y
install
p7zip p7zip-plugins
&&
\
yum
-y
install
htop vim
&&
\
yum
-y
install
expat expat-devel
&&
\
yum
-y
install
flex flex-devel
&&
\
yum
-y
install
perl-Perl-Critic
&&
\
yum
-y
install
pychecker
&&
\
yum
-y
install
pylint
&&
\
yum
-y
clean all
#
# Install CppLint
#
RUN
pip
install
cpplint
RUN
pip
install
--upgrade
pip
&&
pip
install
cpplint
#
# Install FindBugs
#
WORKDIR
$basedir
RUN
wget http://prdownloads.sourceforge.net/findbugs/findbugs-3.0.1.tar.gz
RUN
tar
-xzf
findbugs-3.0.1.tar.gz
RUN
echo
'/opt/findbugs-3.0.1/bin/findbugs "$@"'
>>
/usr/local/bin/findbugs
RUN
chmod
+x /usr/local/bin/findbugs
RUN
wget http://prdownloads.sourceforge.net/findbugs/findbugs-3.0.1.tar.gz
&&
\
tar
-xzf
findbugs-3.0.1.tar.gz
&&
\
rm
-f
findbugs-3.0.1.tar.gz
&&
\
echo
'/opt/findbugs-3.0.1/bin/findbugs "$@"'
>>
/usr/local/bin/findbugs
&&
\
chmod
+x /usr/local/bin/findbugs
#
# Install FlawFinder
#
WORKDIR
$basedir
RUN
wget http://www.dwheeler.com/flawfinder/flawfinder-1.31.tar.gz
RUN
tar
-xzf
flawfinder-1.31.tar.gz
WORKDIR
$basedir/flawfinder-1.31
RUN
make
install
#
# Install Perl::Critic
#
RUN
yum
-y
install
perl-Perl-Critic
RUN
wget http://www.dwheeler.com/flawfinder/flawfinder-1.31.tar.gz
&&
\
tar
-xzf
flawfinder-1.31.tar.gz
&&
\
rm
-f
flawfinder-1.31.tar.gz
&&
\
cd
flawfinder-1.31
&&
\
make
install
&&
\
cd
..
#
# Install PMD (and CPD)
#
WORKDIR
$basedir
RUN
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F5.5.1/pmd-bin-5.5.1.zip
RUN
unzip pmd-bin-5.5.1.zip
RUN
echo
'/opt/pmd-bin-5.5.1/bin/run.sh cpd "$@"'
>>
/usr/local/bin/cpd
RUN
echo
'/opt/pmd-bin-5.5.1/bin/run.sh pmd "$@"'
>>
/usr/local/bin/pmd
RUN
chmod
+x /usr/local/bin/cpd
RUN
chmod
+x /usr/local/bin/pmd
#
# Install PyChecker
#
RUN
yum
-y
install
pychecker
#
# Install PyLint
#
RUN
yum
-y
install
pylint
RUN
wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F5.5.1/pmd-bin-5.5.1.zip
&&
\
unzip pmd-bin-5.5.1.zip
&&
\
rm
-f
pmd-bin-5.5.1.zip
&&
\
echo
'/opt/pmd-bin-5.5.1/bin/run.sh cpd "$@"'
>>
/usr/local/bin/cpd
&&
\
echo
'/opt/pmd-bin-5.5.1/bin/run.sh pmd "$@"'
>>
/usr/local/bin/pmd
&&
\
chmod
+x /usr/local/bin/cpd
&&
\
chmod
+x /usr/local/bin/pmd
#
# Install RATS
#
WORKDIR
$basedir
#RUN wget https://rough-auditing-tool-for-security.googlecode.com/files/rats-2.4.tgz
RUN
wget http://fossies.org/linux/privat/rats-2.4.tgz
RUN
tar
-xzf
rats-2.4.tgz
WORKDIR
$basedir/rats-2.4
RUN
./configure
&&
make
&&
make
install
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
RUN
wget http://fossies.org/linux/privat/rats-2.4.tgz
&&
\
tar
-xzf
rats-2.4.tgz
&&
\
rm
-f
rats-2.4.tgz
&&
\
cd
rats-2.4
&&
\
./configure
&&
\
make
&&
\
make
install
#
# Finish
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment