Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Habitat Sampler
HabitatSampler
Commits
fdf73db2
Commit
fdf73db2
authored
Jun 09, 2021
by
Romulo Pereira Goncalves
Browse files
Remove sudo
parent
a290cbd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/build_docker.sh
View file @
fdf73db2
...
...
@@ -10,10 +10,10 @@ container_name="hasa"
input_data_folder
=
"/tmp/hasa"
#Check if image exists
if
[
$(
sudo
docker images |
grep
${
runner_iname
}
|
wc
-l
)
==
0
]
if
[
$(
docker images |
grep
${
runner_iname
}
|
wc
-l
)
==
0
]
then
# build docker image
sudo
docker build
--network
=
host
-f
${
context_dir
}
/
${
dockerfile
}
-m
20G
-t
${
runner_tag
}
${
context_dir
}
docker build
--network
=
host
-f
${
context_dir
}
/
${
dockerfile
}
-m
20G
-t
${
runner_tag
}
${
context_dir
}
else
echo
"It already exists a Docker image with the name
${
runner_tag
}
!!!"
fi
Write
Preview
Supports
Markdown
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