Skip to content

Commit f847a96

Browse files
author
Anze
committed
Rename snmpcollector -> snmpbot
1 parent 38e1549 commit f847a96

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pytest:
2222
- pipenv install --dev
2323
script:
2424
- export REDIS_HOST="redis"
25-
- pipenv run pytest -x test_snmpcollector.py
25+
- pipenv run pytest -x test_snmpbot.py
2626

2727
deploy to docker hub:
2828
stage: deploy

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
FROM python:3.6-slim-stretch as python-requirements
2-
COPY ./Pipfile ./Pipfile.lock /snmpcollector/
3-
WORKDIR /snmpcollector
2+
COPY ./Pipfile ./Pipfile.lock /snmpbot/
3+
WORKDIR /snmpbot
44
RUN \
55
pip install pipenv && \
66
pipenv lock -r > /requirements.txt
77

88
FROM python:3.6-slim-stretch as build-backend
9-
COPY ./ /snmpcollector/
10-
WORKDIR /snmpcollector
9+
COPY ./ /snmpbot/
10+
WORKDIR /snmpbot
1111
RUN \
1212
find ./ ! -name '*.py' -type f -exec rm '{}' ';' && \
1313
rm -rf tests/ .vscode/ .pytest_cache/ __pycache__/ && \
@@ -38,8 +38,8 @@ RUN \
3838
apt-get autoremove --yes && \
3939
rm -rf /var/lib/{apt,dpkg,cache,log}/ && \
4040
echo "alias l='ls -altr'" >> /root/.bashrc
41-
COPY --from=build-backend /snmpcollector/ /snmpcollector/
42-
WORKDIR /snmpcollector
41+
COPY --from=build-backend /snmpbot/ /snmpbot/
42+
WORKDIR /snmpbot
4343
# check for "fail" file and if it exists, remove it and fail the check:
4444
HEALTHCHECK --interval=10s --retries=1 CMD /bin/bash -c "[ ! -f /tmp/fail_health_check ] || ( rm /tmp/fail_health_check && exit 1 )"
45-
CMD ["python", "-m", "snmpcollector"]
45+
CMD ["python", "-m", "snmpbot"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Docker is the easiest and currently the only officially supported way. Note that
3333

3434
2) save [docker-compose.yml](https://gitlab.com/grafolean/grafolean-collector-snmp/raw/master/docker-compose.yml) to a local file:
3535
```
36-
$ mkdir ~/snmpcollector
37-
$ cd ~/snmpcollector
36+
$ mkdir ~/snmpbot
37+
$ cd ~/snmpbot
3838
$ wget https://gitlab.com/grafolean/grafolean-collector-snmp/raw/master/docker-compose.yml
3939
```
4040

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
# the settings appropriately.
99
#
1010

11-
snmpcollector:
11+
snmpbot:
1212
# If you wish to load an explicit version, change the next line. For example:
1313
# image: grafolean/grafolean-collector-snmp:v1.0.0
1414
image: grafolean/grafolean-collector-snmp
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from easysnmp import SNMPVariable
22
import pytest
33

4-
from snmpcollector import _apply_expression_to_results, _convert_counters_to_values, _construct_output_path
4+
from snmpbot import _apply_expression_to_results, _convert_counters_to_values, _construct_output_path
55

66

77
def test_apply_expression_snmpget():

0 commit comments

Comments
 (0)