-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from jantman/docker
Docker
- Loading branch information
Showing
12 changed files
with
369 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
bin/ | ||
include/ | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
pip-selfcheck.json | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# virtualenv | ||
bin/ | ||
include/ | ||
|
||
.idea/ | ||
result.json | ||
*.json | ||
/*.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,3 +73,5 @@ result.json | |
/tcp_*.png | ||
/udp_*.png | ||
/channels*.png | ||
|
||
pyvenv.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
Changelog | ||
========= | ||
|
||
0.1.0 (YYYY-MM-DD) | ||
0.2.0 (2020-08-09) | ||
------------------ | ||
|
||
* Package via Docker, for easier usage without worrying about dependencies. | ||
* Optional AP name/band annotations on heatmap. | ||
* Add CLI option to disable iwlist scans. | ||
* Add ability to remove survey points. | ||
* Add ability to drag (move) survey points. | ||
|
||
0.1.0 (2018-10-30) | ||
------------------ | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM debian:buster-20200720 | ||
|
||
ARG build_date | ||
ARG repo_url | ||
ARG repo_ref | ||
USER root | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
iperf3 \ | ||
gcc \ | ||
git \ | ||
libiw-dev \ | ||
python3 \ | ||
python3-cffi \ | ||
python3-dev \ | ||
python3-matplotlib \ | ||
python3-pip \ | ||
python3-scipy \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
python3-wxgtk4.0 \ | ||
wireless-tools && \ | ||
pip3 install \ | ||
iperf3 \ | ||
iwlib | ||
|
||
COPY . /app | ||
|
||
RUN cd /app && \ | ||
python3 setup.py develop && \ | ||
pip3 freeze > /app/requirements.installed | ||
|
||
LABEL maintainer="[email protected]" \ | ||
org.label-schema.build-date="$build_date" \ | ||
org.label-schema.name="jantman/python-wifi-survey-heatmap" \ | ||
org.label-schema.url="https://github.com/jantman/python-wifi-survey-heatmap" \ | ||
org.label-schema.vcs-url="$repo_url" \ | ||
org.label-schema.vcs-ref="$repo_ref" \ | ||
org.label-schema.version="$repo_ref" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
# For the iperf server, if using for the server side | ||
EXPOSE 5201/tcp | ||
EXPOSE 5201/udp | ||
|
||
CMD /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash -ex | ||
|
||
cd "$( dirname "${BASH_SOURCE[0]}" )" | ||
BDATE=$(date +%Y-%m-%dT%H:%M:%S.00%Z) | ||
REF=$(git rev-parse --short HEAD) | ||
if ! git diff --no-ext-diff --quiet --exit-code || ! git diff-index --cached --quiet HEAD --; then | ||
REF="${REF}-dirty" | ||
fi | ||
|
||
docker build \ | ||
--build-arg "build_date=${BDATE}" \ | ||
--build-arg "repo_url=$(git config remote.origin.url)" \ | ||
--build-arg "repo_ref=${REF}" \ | ||
-t jantman/python-wifi-survey-heatmap:${REF} \ | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.