UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
S
Solutions Delivery Platform
dependency-check
dependency-check
Commits
131c34d8
Commit
131c34d8
authored
Mar 10, 2020
by
Gerard Fulton
Browse files
Update Dockerfile
parent
92f70289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
Dockerfile
Dockerfile
+13
-9
No files found.
Dockerfile
View file @
131c34d8
...
@@ -16,7 +16,7 @@ LABEL name="Solutions Delivery Platform: OWASP Dependency Check" \
...
@@ -16,7 +16,7 @@ LABEL name="Solutions Delivery Platform: OWASP Dependency Check" \
COPY
LICENSE /licenses
COPY
LICENSE /licenses
### Install packages from ubi base repo
### Install packages from ubi base repo
RUN
INSTALL_PKGS
=
"java-1.8.0-openjdk-devel ruby unzip"
&&
\
RUN
INSTALL_PKGS
=
"java-1.8.0-openjdk-devel ruby
ruby-devel
unzip"
&&
\
yum update
-y
\
yum update
-y
\
--disablerepo
=
"*"
\
--disablerepo
=
"*"
\
--enablerepo
=
"*ubi-7*"
\
--enablerepo
=
"*ubi-7*"
\
...
@@ -25,24 +25,28 @@ RUN INSTALL_PKGS="java-1.8.0-openjdk-devel ruby unzip" && \
...
@@ -25,24 +25,28 @@ RUN INSTALL_PKGS="java-1.8.0-openjdk-devel ruby unzip" && \
--security
\
--security
\
--sec-severity
=
Important
\
--sec-severity
=
Important
\
--sec-severity
=
Critical
&&
\
--sec-severity
=
Critical
&&
\
yum
install
${
INSTALL_PKGS
}
-y
\
yum
install
-y
${
INSTALL_PKGS
}
\
--disablerepo
=
"*"
\
--disablerepo
=
"*"
\
--enablerepo
=
"*ubi-7*"
\
--enablerepo
=
"*ubi-7*"
\
--disableplugin
=
subscription-manager
\
--disableplugin
=
subscription-manager
\
--setopt
=
tsflags
=
nodocs
--setopt
=
tsflags
=
nodocs
&&
\
yum
-y
-v
clean all
&&
\
[
!
-d
/var/cache/yum
]
||
rm
-rf
/var/cache/yum
### Arguments and Environment variables
### Arguments and Environment variables
ENV
user dependencycheck
ENV
user dependencycheck
ARG
SDP_BUILD_DEPENDENCY_VERSION
dcar-0.
4
ARG
SDP_BUILD_DEPENDENCY_VERSION
="
dcar-0.
3"
ENV
OWASP_DEP_CH
EC
K_VERSION 5.2.4
ENV
OWASP_DEP_CHK_VERSION 5.2.4
### Fetch dependency bundle
### Fetch dependency bundle
RUN
mkdir
/root/tmp
RUN
mkdir
/root/tmp
COPY
owasp-dep-check-dependencies-$SDP_BUILD_DEPENDENCY_VERSION.tar.gz /root/tmp/owasp-dep-check-dependencies-$OWASP_DEP_CH
EC
K_VERSION.tar.gz
COPY
owasp-dep-check-dependencies-$SDP_BUILD_DEPENDENCY_VERSION.tar.gz /root/tmp/owasp-dep-check-dependencies-$OWASP_DEP_CHK_VERSION.tar.gz
### Install mono-devel
### Install mono-devel
RUN
cd
/root/tmp
&&
tar
-xzf
owasp-dep-check-dependencies-
$OWASP_DEP_CHECK_VERSION
.tar.gz
&&
rpm
-ivh
--replacepkgs
--replacefiles
/root/tmp/dependencies/mono-devel/
*
.rpm
&&
rm
/root/tmp/owasp-dep-check-dependencies-
$OWASP_DEP_CHECK_VERSION
.tar.gz
RUN
cd
/root/tmp
&&
\
tar
-xzf
owasp-dep-check-dependencies-
$OWASP_DEP_CHK_VERSION
.tar.gz
&&
\
rpm
-ivh
--replacepkgs
--replacefiles
/root/tmp/dependencies/mono-devel/
*
.rpm
&&
\
rm
/root/tmp/owasp-dep-check-dependencies-
$OWASP_DEP_CHK_VERSION
.tar.gz
### Install ruby dependencies
### Install ruby dependencies
RUN
cd
/root/tmp
&&
\
RUN
cd
/root/tmp
&&
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment