-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into frontend-team
- Loading branch information
Showing
34 changed files
with
778 additions
and
614 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,29 @@ | ||
# ignore everything | ||
* | ||
|
||
# except the hardware directory | ||
!hardware | ||
|
||
# things we want to ignore in the file directory | ||
**/__pycache__ | ||
**/*.pyc | ||
**/*.pyo | ||
**/*.pyd | ||
**/.Python | ||
**/.env | ||
**/pip-log.txt | ||
**/pip-delete-this-directory.txt | ||
**/.tox | ||
**/.coverage | ||
**/.coveragerc | ||
**/.coverage.* | ||
**/.cache | ||
**/nosetests.xml | ||
**/coverage.xml | ||
**/*,cover | ||
**/*.log | ||
|
||
# things we want to specifically include | ||
!pi_requirements.txt | ||
!Dockerfile | ||
|
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 |
---|---|---|
|
@@ -3,5 +3,6 @@ max-line-length = 119 | |
exclude = | ||
.git, | ||
__pycache__, | ||
venv | ||
venv, | ||
pi_venv | ||
**/migrations |
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,27 @@ | ||
## Title | ||
_Give a self-explanatory title_ | ||
|
||
## Description | ||
_If this fixes a bug or resolves an issue, provide a link to that issue. Give a detailed description that answers:_ | ||
- _what is the purpose of this PR?_ | ||
- _what is the original vs the new behaviour?_ | ||
- _what bug does this PR attempt to fix?_ | ||
- _what is documented in the new documentation?_ | ||
|
||
## Types of Changes | ||
_Put an `x` in the boxes that apply_ | ||
|
||
- [ ] Feature (non-breaking change which adds functionality) | ||
- [ ] Bug Fix (non-breaking change that fixes an issue) | ||
- [ ] Breaking Change (feature/fix that causes existing features to not work as expected) | ||
- [ ] Documentation | ||
|
||
## Checklist | ||
|
||
- [ ] I have read the [contribute]contributing<link> doc | ||
- [ ] Classes, scripts, and environment variables follow existing naming convention | ||
- [ ] Lint and Unit tests pass locally | ||
- [ ] New features on hardware have been tested on a local Raspberry Pi | ||
- [ ] Mention new programs/binaries if any must be installed along with this change | ||
- [ ] Mention new environment variables if any have been added to hardware/env file | ||
- [ ] Test coverage should not drop more than 3% |
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 |
---|---|---|
@@ -1,14 +1,28 @@ | ||
FROM raspbian/stretch | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# install common build dependencies and clean up afterwards | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
raspi-config \ | ||
python3-pip \ | ||
python3-sense-emu \ | ||
sense-emu-tools \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir ~/Downloads | ||
RUN mkdir hardware | ||
|
||
# copy setup scripts | ||
COPY ./hardware . | ||
COPY ./hardware/setup/raspberrypi-common.sh . | ||
|
||
# run setup | ||
RUN bash ./setup/raspberrypi-common.sh | ||
RUN bash ./raspberrypi-common.sh | ||
|
||
COPY ./hardware/pi_requirements.txt . | ||
RUN sudo python3 -m pip install pip --upgrade --force | ||
RUN sudo pip3 install -r pi_requirements.txt | ||
|
||
COPY ./hardware hardware/ | ||
|
||
RUN echo "Hello, Docker!" > hello.txt | ||
CMD [ "python3", "-m", "hardware.main" ] |
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 was deleted.
Oops, something went wrong.
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.