FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BenchmarkJava/VMs/buildDockerImage.sh at master · Excloudx6/BenchmarkJava · GitHub
Excloudx6
/
BenchmarkJava
Public
forked from
OWASP-Benchmark/BenchmarkJava
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BenchmarkJava
/
VMs
/
buildDockerImage.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
13 lines (11 loc) · 478 Bytes
Breadcrumbs
BenchmarkJava
/
VMs
/
buildDockerImage.sh
Copy path
File metadata and controls
executable file
·
13 lines (11 loc) · 478 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
#
Pull in latest version of ubuntu
docker pull ubuntu:latest
#
Remove any ubuntu:<none> image if it was left behind by a new version of ubunto:latest being pulled
i=
$(
docker images
|
grep
"
ubuntu
"
|
grep
"
<none
"
|
awk
'
{print $3}
'
)
if
[
"
$i
"
]
then
docker rmi
$i
fi
#
Since Docker doesn't auto delete anything, just like for the Ubunto update, delete any existing benchmark:latest image before building a new one
docker image rm benchmark:latest
docker build -t benchmark
.
Back
|
FazBrowse Home
|
New Git URL