mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 03:17:54 +00:00
[WIFI-10536] Chg: update on Dockerfile with new updates
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
@@ -14,9 +14,10 @@ COPY requirements.txt /wlan-testing/requirements.txt
|
|||||||
RUN pip3 install -r /wlan-testing/requirements.txt
|
RUN pip3 install -r /wlan-testing/requirements.txt
|
||||||
COPY tests /wlan-testing/tests
|
COPY tests /wlan-testing/tests
|
||||||
COPY libs /wlan-testing/libs
|
COPY libs /wlan-testing/libs
|
||||||
|
COPY dut_lib_template /wlan-testing/dut_lib_template
|
||||||
COPY setup_env.bash /wlan-testing/setup_env.bash
|
COPY setup_env.bash /wlan-testing/setup_env.bash
|
||||||
ENV PYTHON=/usr/local/bin/python3
|
ENV PYTHON=/usr/local/bin/python3
|
||||||
ENV PIP=/usr/local/bin/pip3
|
ENV PIP=/usr/local/bin/pip3
|
||||||
RUN /wlan-testing/setup_env.bash -t $CLOUDSDK_LIBRARY -d $TEST_DEVICE_NAME -n "TIP Automation" -o TIP -e tip-automation@telecominfraproject.com -i "TIP OpenWIFI Library"
|
RUN /wlan-testing/setup_env.bash -t $CLOUDSDK_LIBRARY -d $TEST_DEVICE_NAME -n "TIP Automation" -o TIP -e tip-automation@telecominfraproject.com -i "TIP OpenWIFI Library" && pip3 freeze
|
||||||
WORKDIR /wlan-testing
|
WORKDIR /wlan-testing
|
||||||
ENTRYPOINT ["/bin/bash"]
|
ENTRYPOINT ["/bin/bash"]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
|
|||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='dut_lib_template',
|
name='dut_lib_template',
|
||||||
version='0.1',
|
version='0.1',
|
||||||
scripts=['dut_lib_template.py', 'controller.py', 'ap_lib.py', 'SetupLibrary.py', 'openwrt_ctl.py'],
|
scripts=['dut_lib_template.py', 'ap_lib.py', 'SetupLibrary.py', 'openwrt_ctl.py'],
|
||||||
author="Shivam Thakur",
|
author="Shivam Thakur",
|
||||||
author_email="shivam.thakur@candelatech.com",
|
author_email="shivam.thakur@candelatech.com",
|
||||||
description="TIP OpenWIFI 2.X Library",
|
description="TIP OpenWIFI 2.X Library",
|
||||||
|
|||||||
@@ -95,10 +95,10 @@ then
|
|||||||
touch tests/imports.py
|
touch tests/imports.py
|
||||||
if [ $target == "tip_2x" ]
|
if [ $target == "tip_2x" ]
|
||||||
then
|
then
|
||||||
cd libs/dut_lib_template
|
cd dut_lib_template
|
||||||
$PYTHON setup.py bdist_wheel
|
$PYTHON setup.py bdist_wheel
|
||||||
$PIP install dist/*.whl --force-reinstall
|
$PIP install dist/*.whl --force-reinstall
|
||||||
cd ../../
|
cd ../
|
||||||
fi
|
fi
|
||||||
x=$(whoami)
|
x=$(whoami)
|
||||||
echo -e "\"\"\"\nRegistered Target Imports\n\"\"\"\nimport sys\nimport importlib\n\nsys.path.append('/usr/local/bin')\n\nsys.path.append('/home/$x/.local//bin/')\n\nsys.path.append('/home/$x/.local/lib/python3.8/site-packages/')\n\n" >> tests/imports.py
|
echo -e "\"\"\"\nRegistered Target Imports\n\"\"\"\nimport sys\nimport importlib\n\nsys.path.append('/usr/local/bin')\n\nsys.path.append('/home/$x/.local//bin/')\n\nsys.path.append('/home/$x/.local/lib/python3.8/site-packages/')\n\n" >> tests/imports.py
|
||||||
|
|||||||
Reference in New Issue
Block a user