-
Notifications
You must be signed in to change notification settings - Fork 32
Feature/ci run boardfarm #1492
Feature/ci run boardfarm #1492
Changes from all commits
1198db0
3fd1f05
74041ac
84d0507
9dbd5fe
5f47678
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,4 +15,4 @@ else | |
| fi | ||
| export PYTHONPATH | ||
|
|
||
| exec python3 "${bf_dir}"/bft -c "${bf_plugins_dir}"/boardfarm_prplmesh/prplmesh_config.json -n prplmesh_docker -x test_flows | ||
| exec bft -c "${bf_plugins_dir}"/boardfarm_prplmesh/prplmesh_config.json -n prplmesh_docker -x test_flows | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When Oleksii originally integrated boardfarm, I asked not do to this exactly because it requires installing boardfarm, which I wanted to avoid :-) But I guess it's OK now that we have it in docker.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is actually bogus; I added a script run_bf_compose.sh that still uses the boardfarm in it's local copy, as above |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| FROM python:3.8-slim-buster | ||
|
|
||
| RUN apt-get update \ | ||
| && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
| apt-transport-https \ | ||
| ca-certificates curl \ | ||
| curl \ | ||
| gcc \ | ||
| git \ | ||
| gnupg \ | ||
| gnupg-agent \ | ||
| libsnmp-dev \ | ||
| netcat \ | ||
| software-properties-common \ | ||
| wireshark-common \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| COPY requirements.txt /app/requirements.txt | ||
|
|
||
| WORKDIR app | ||
| RUN pip3 install -r requirements.txt | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this? Before, we just took the requirements.txt from boardfarm. I.e. Yes, it does mean that all the pip stuff has to be re-downloaded whenever we change the boardfarm hash, but that's going to be rare anyway.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Boardfarm itself is not installed in this setup, it is used from the rootdir/boardfarm dir directly to allow for any changes made locally to be used. As we do not expect to change boardfarm itself, this will be changed to installing as before, cloning and the rest.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| # TODO: what needs this? | ||
| #RUN pip3 install jsonschema distro | ||
|
|
||
|
|
||
| RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - | ||
| RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | ||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends \ | ||
| docker-ce \ | ||
| docker-ce-cli \ | ||
| containerd.io \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
| RUN chmod 755 /usr/local/bin/docker-compose | ||
|
Comment on lines
+27
to
+37
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For my info: why isn't all this simply taken from Debian/Ubuntu repos? Are we using such advanced features?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could, debian stable is 1.21 and I don't think we are going to use later development, but as documentation is not tagged (always the latest) with this we have the mechanism in place for future upgrades (just change the 1.26.0 in the url and test) |
||
|
|
||
| RUN git clone https://github.com/mattsm/boardfarm.git \ | ||
| && cd boardfarm \ | ||
| && git checkout 100521fde1fb67536682cafecc2f91a6e2e8a6f8 \ | ||
| && python3 setup.py install | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| aenum | ||
| argparse | ||
| beautifulsoup4 | ||
| boto3 | ||
| cdrouter | ||
| debtcollector | ||
| distro | ||
| dlipower | ||
| dnspython | ||
| docutils<0.16 | ||
| easysnmp | ||
| elasticsearch>=1.0.0 | ||
| Faker | ||
| future | ||
| ipaddress | ||
| jira | ||
| jsonschema | ||
| marshmallow<3 | ||
| matplotlib | ||
| nested_lookup==0.2.19 | ||
| netaddr | ||
| pexpect | ||
| pre-commit | ||
| psutil | ||
| pycountry | ||
| pycryptodome | ||
| pyflakes | ||
| pymongo | ||
| pyserial | ||
| pysmi | ||
| pysnmp | ||
| pytest==5.3.5 | ||
| pytest-html | ||
| pytest-mock | ||
| pytest-randomly | ||
| pyvirtualdisplay | ||
| requests | ||
| retry | ||
| selenium | ||
| simplejson | ||
| six | ||
| sphinx | ||
| termcolor | ||
| unittest2 | ||
| xmltodict | ||
| xvfbwrapper | ||
| yapf | ||
| zeep |
Uh oh!
There was an error while loading. Please reload this page.