Compare commits

...

5 Commits

Author SHA1 Message Date
André Almeida
ef36743453 Added Dockerfile and updated README file instructions 🎉🎊 2019-10-11 16:57:50 +01:00
f7fde9b3fe Update README.md 2019-05-20 10:06:17 -07:00
cef2a5939e Merge branch 'develop' into 'master'
requirements.txt

See merge request public_projects/raspberry-pi!1
2019-05-20 10:00:47 -07:00
9cd605a7a8 Update README.md 2019-05-09 08:19:26 -07:00
0790bbe9da Update README.md 2019-05-07 11:29:18 -07:00
2 changed files with 29 additions and 1 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM python:2
MAINTAINER André Almeida "andre@andrealmeida.net"
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
ENTRYPOINT [ "python" ]
CMD [ "raspberry-pi-web-info/api.py" ]

View File

@ -1,5 +1,7 @@
# Raspberry | Pi
![Version](https://img.shields.io/badge/version-0.0.1-success.svg)
Middleware in python2.7 to show some information about your Raspberry Pi:
![alt text](https://i.postimg.cc/j2WPkKnv/imageedit-3-9864224351.png)
@ -40,8 +42,12 @@ and you need to install extra dependencies like:
### Prerequisites
Install python2.7 - https://www.python.org/download/releases/2.7/
Install pip - https://pip.pypa.io/en/stable/
(optional)
Install docker - https://www.docker.com
### Installing
@ -51,6 +57,13 @@ Please, use the following command to install the requirements packages for this
pip install -r requirements.txt
```
if you prefeer, use docker:
```
docker build -t raspberry-project .
docker run -p 5000:5000 raspberry-project
```
## Deployment
@ -64,6 +77,7 @@ Navigate to 127.0.0.1:5000 in your browser and the credentials are:
- admin
- admin
If you prefeer, you can navigate or use the [POSTMAN](https://www.getpostman.com) to get the information via JSON: 127.0.0.1:5000/readpietojson
## Built With
@ -80,7 +94,7 @@ I use [SemVer](http://semver.org/) for versioning. For the versions available, s
## Authors
* **André Almeida** - [andrealmeida.net](https://andrealmeida.net)
[![Author](https://img.shields.io/badge/Author-André%20Almeida-blue.svg)](https://andrealmeida.net)
## License