diff --git a/12.Netcapture/1.Install_Netcapture/0_setup.py b/12.Netcapture/1.Install_Netcapture/0_setup.py new file mode 100644 index 0000000000000000000000000000000000000000..5ec10e83998b88684b0ba876c4e4bc57134a7ff2 --- /dev/null +++ b/12.Netcapture/1.Install_Netcapture/0_setup.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 +import utils + + +def setup(interactive=True): + # 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 update && apt-get install --yes docker-ce', + 'apt-get install --yes python3-miris-netcapture', + ] + + try: + utils.run_commands(cmds) + except Exception: + raise diff --git a/launcher.sh b/launcher.sh index 86ed940df2aab93c65612043a32de9bed43b723c..937f10343a09c58777587e83af5caab2ff382d06 100755 --- a/launcher.sh +++ b/launcher.sh @@ -137,7 +137,9 @@ case "$1" in mediaserver # install celerity-worker python3 /root/envsetup/envsetup.py 72 - # deploy videos + # install netcapture + python3 /root/envsetup/envsetup.py 121 + # demokit scripts: deploy videos, custom conf, etc python3 /root/envsetup/envsetup.py 53 [[ $2 = "--skip-tests" ]] || tests ;;