Skip to content

Commit

Permalink
etc: DockerHelper: Add option to turn off the constant build directory
Browse files Browse the repository at this point in the history
Signed-off-by: Eryk Szpotanski <[email protected]>
  • Loading branch information
eszpotanski authored and glatosinski committed Sep 10, 2024
1 parent ca7db85 commit 8743467
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion etc/DockerHelper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ baseDir="$(pwd)"
org=openroad

DOCKER_CMD="docker"
noConstantBuildDir=""

_help() {
cat <<EOF
Expand All @@ -32,6 +33,7 @@ usage: $0 [CMD] [OPTIONS]
-password=PASSWORD Password to loging at the docker registry.
-ci Install CI tools in image
-dry-run Do not push images to the repository
-no-constant-build-dir Do not use constant build directory
-h -help Show this message and exits
EOF
Expand Down Expand Up @@ -67,7 +69,7 @@ _setup() {
fromImage="${FROM_IMAGE_OVERRIDE:-$osBaseImage}"
cp tools/OpenROAD/etc/DependencyInstaller.sh etc/InstallerOpenROAD.sh
context="etc"
buildArgs="--build-arg options=${options}"
buildArgs="--build-arg options=${options} ${noConstantBuildDir}"
;;
*)
echo "Target ${target} not found" >&2
Expand Down Expand Up @@ -202,6 +204,9 @@ while [ "$#" -gt 0 ]; do
-tag=* )
tag="${1#*=}"
;;
-no-constant-build-dir )
noConstantBuildDir="--build-arg constantBuildDir= "
;;
-os | -target | -threads | -username | -password | -tag )
echo "${1} requires an argument" >&2
_help
Expand Down

0 comments on commit 8743467

Please sign in to comment.