Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
LOFAR2.0
tango
Commits
648a5b16
Commit
648a5b16
authored
4 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
Rectify the path munging
parent
cb89cbd0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/itango/install_requirements-DS.sh
+11
-7
11 additions, 7 deletions
tools/itango/install_requirements-DS.sh
with
11 additions
and
7 deletions
tools/itango/install_requirements-DS.sh
+
11
−
7
View file @
648a5b16
if
[
${#}
-ne
1
]
;
then
echo
"The 1st parameter must be the requirements.txt file."
exit
-1
fi
# Find the path to the device server's requirements.txt file
# on the Docker's host but relative to the /hosthome directory
# in Docker the user's # mounted ${HOME}).
# ATTENTION
# This is assuming that the device server's requirements.txt file
# exists # on the Docker's host in the user's ${HOME} directory.
r
unThi
s
=
$(
basename
${
0
}
)
runThis
=
${
runThis
}
/
requirements
.txt
if
[
-f
${
r
unThi
s
}
]
;
then
r
equirement
s
=
$(
basename
${
1
}
)
echo
${
requirements
}
if
[
-f
${
r
equirement
s
}
]
;
then
myDir
=
${
PWD
}
else
myDir
=
${
PWD
}
/
$(
dirname
${
0
}
)
myDir
=
${
PWD
}
/
$(
dirname
${
1
}
)
fi
deviceServerPath
=
${
myDir
//
${
HOME
}
\//\/hosthome\/
}
docker
exec
-it
itango python3
-m
pip
install
-r
${
deviceServerPath
}
/requirements.txt
requirementsPath
=
${
myDir
//
${
HOME
}
\//\/hosthome\/
}
docker
exec
-it
itango python3
-m
pip
install
-r
${
requirementsPath
}
/
${
requirements
}
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