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
Branches containing commit
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 @@
...
@@ -11,150 +11,95 @@
FROM
centos:latest
FROM
centos:latest
MAINTAINER
"CERN IT-DI-CSO <computer.security@cern.ch>"
MAINTAINER
"CERN IT-DI-CSO <computer.security@cern.ch>"
#
#
# Helpful variables
# Helpful variables
#
#
ENV
basedir /opt
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
# Install with YUM:
RUN
yum
-y
install
p7zip p7zip-plugins
# - Epel Repo
RUN
yum
-y
install
htop vim
# - Basic development tools (3)
# - Java development packages
# - Perl development packages
#
# - Python development packages (2)
# Install dependencies for RATS
# - Ruby development packages
#
# - Python PIP
RUN
yum
-y
install
expat expat-devel
# - General useful software (3)
RUN
yum
-y
install
flex flex-devel
# - 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
# Install CppLint
#
#
RUN
pip
install
cpplint
RUN
pip
install
--upgrade
pip
&&
pip
install
cpplint
#
#
# Install FindBugs
# Install FindBugs
#
#
WORKDIR
$basedir
RUN
wget http://prdownloads.sourceforge.net/findbugs/findbugs-3.0.1.tar.gz
&&
\
RUN
wget http://prdownloads.sourceforge.net/findbugs/findbugs-3.0.1.tar.gz
tar
-xzf
findbugs-3.0.1.tar.gz
&&
\
RUN
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
&&
\
RUN
echo
'/opt/findbugs-3.0.1/bin/findbugs "$@"'
>>
/usr/local/bin/findbugs
chmod
+x /usr/local/bin/findbugs
RUN
chmod
+x /usr/local/bin/findbugs
#
#
# Install FlawFinder
# Install FlawFinder
#
#
WORKDIR
$basedir
RUN
wget http://www.dwheeler.com/flawfinder/flawfinder-1.31.tar.gz
&&
\
RUN
wget http://www.dwheeler.com/flawfinder/flawfinder-1.31.tar.gz
tar
-xzf
flawfinder-1.31.tar.gz
&&
\
RUN
tar
-xzf
flawfinder-1.31.tar.gz
rm
-f
flawfinder-1.31.tar.gz
&&
\
cd
flawfinder-1.31
&&
\
WORKDIR
$basedir/flawfinder-1.31
make
install
&&
\
RUN
make
install
cd
..
#
# Install Perl::Critic
#
RUN
yum
-y
install
perl-Perl-Critic
#
#
# Install PMD (and CPD)
# 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
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
&&
\
RUN
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
&&
\
RUN
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
&&
\
RUN
echo
'/opt/pmd-bin-5.5.1/bin/run.sh pmd "$@"'
>>
/usr/local/bin/pmd
chmod
+x /usr/local/bin/cpd
&&
\
RUN
chmod
+x /usr/local/bin/cpd
chmod
+x /usr/local/bin/pmd
RUN
chmod
+x /usr/local/bin/pmd
#
# Install PyChecker
#
RUN
yum
-y
install
pychecker
#
# Install PyLint
#
RUN
yum
-y
install
pylint
#
#
# Install RATS
# Install RATS
#
#
WORKDIR
$basedir
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
wget http://fossies.org/linux/privat/rats-2.4.tgz
tar
-xzf
rats-2.4.tgz
&&
\
RUN
tar
-xzf
rats-2.4.tgz
rm
-f
rats-2.4.tgz
&&
\
cd
rats-2.4
&&
\
WORKDIR
$basedir/rats-2.4
./configure
&&
\
RUN
./configure
&&
make
&&
make
install
make
&&
\
make
install
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
#
# Finish
# 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