Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
mediaserver
envsetup
Commits
ffdff52c
Commit
ffdff52c
authored
5 years ago
by
Nicolas KAROLAK
Browse files
Options
Downloads
Patches
Plain Diff
fix netcapture installation | refs
#29840
parent
e20afabf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
12.Netcapture/1.Install_Netcapture/0_setup.py
+10
-3
10 additions, 3 deletions
12.Netcapture/1.Install_Netcapture/0_setup.py
utils_lib/os.py
+1
-1
1 addition, 1 deletion
utils_lib/os.py
with
11 additions
and
4 deletions
12.Netcapture/1.Install_Netcapture/0_setup.py
+
10
−
3
View file @
ffdff52c
#!/usr/bin/env python3
import
utils
import
json
import
random
...
...
@@ -43,11 +44,17 @@ def write_miris_conf():
def
setup
(
interactive
=
True
):
if
not
utils
.
supported_platform
():
utils
.
log
(
"
unsupported os
"
,
error
=
True
)
exit
(
1
)
dist
,
_
=
utils
.
dist
()
# Run commands
cmds
=
[
'
apt-get install --yes apt-transport-https ca-certificates curl software-properties-common
'
,
'
curl -fsSL https://download.docker.com/linux/
ubuntu
/gpg | apt-key add -
'
,
'
add-apt-repository
"
deb [arch=amd64] https://download.docker.com/linux/
ubuntu
$(lsb_release -cs) stable
"'
,
'
apt-get install --yes apt-transport-https ca-certificates curl
gnupg-agent lsb-release
software-properties-common
'
,
f
'
curl -fsSL https://download.docker.com/linux/
{
dist
}
/gpg | apt-key add -
'
,
f
'
add-apt-repository
"
deb [arch=amd64] https://download.docker.com/linux/
{
dist
}
$(lsb_release -cs) stable
"'
,
'
apt-get update && apt-get install --yes docker-ce
'
,
'
apt-get install --yes python3-miris-netcapture
'
,
]
...
...
This diff is collapsed.
Click to expand it.
utils_lib/os.py
+
1
−
1
View file @
ffdff52c
...
...
@@ -22,7 +22,7 @@ def get_dir(file_path: str) -> str:
def
dist
()
->
tuple
:
"""
Return distribution name and version
)
.
"""
Return distribution name and version.
:return: Distribution name and version
:rtype: tuple
...
...
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