-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding README, new build.sh script, increasing version
- Loading branch information
1 parent
c5ed7ba
commit d95cc8f
Showing
8 changed files
with
56 additions
and
29 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 |
---|---|---|
@@ -1,3 +1,30 @@ | ||
# Forest Monitor Server - Brazil Data Cube | ||
# Forest Monitor BackEnd Server | ||
|
||
## Publishing on DockerHub | ||
|
||
To publish a new image to DockerHub, that the application version at forest_monitor/setup.py was increased. | ||
|
||
### Building with Docker | ||
|
||
To build and push an image to Docker Hub, just run: | ||
|
||
$ Docker/docker-build.sh | ||
|
||
## Running locally | ||
|
||
### Dependencies | ||
|
||
To run the application locally, be sure too to install the following dependencies: | ||
|
||
.. code-block:: shell | ||
$ apt-get update | ||
$ apt-get install -y build-essential libpq-dev python3-pip git | ||
$ pip3 install -r requirements.txt | ||
|
||
### Running | ||
|
||
To run the application: | ||
|
||
.. code-block:: shell | ||
$ python3 Docker/manage.py run | ||
|
||
TODO |
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,9 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ADD . /forest-monitor-backend-base | ||
|
||
WORKDIR /forest-monitor-backend-base | ||
|
||
VOLUME /data | ||
|
||
#CMD /bin/bash |
File renamed without changes.
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,13 +1,9 @@ | ||
FROM brazildatacube/base:0.1 | ||
|
||
RUN apt-get update && apt-get install -y build-essential libpq-dev | ||
FROM forestmonitor/forest-monitor-backend-base:1.0 | ||
|
||
ADD . /forest-monitor | ||
|
||
WORKDIR /forest-monitor | ||
|
||
RUN pip3 install -r requirements.txt | ||
|
||
VOLUME /data | ||
|
||
CMD [ "python3", "manage.py", "run" ] | ||
CMD [ "python3", "manage.py", "run" ] |
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,11 @@ | ||
#!/bin/bash | ||
|
||
PROJECT="forestmonitor" | ||
|
||
REPOSITORY="forest-monitor-backend" | ||
|
||
VERSION=$(grep version ../setup.py | head -1 | sed 's/.*"\(.*\)".*/\1/') | ||
|
||
docker build -t $PROJECT/$REPOSITORY:v$VERSION -f Dockerfile . | ||
|
||
docker push $PROJECT/$REPOSITORY:v$VERSION |
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 |
---|---|---|
|
@@ -5,11 +5,11 @@ | |
|
||
setup( | ||
name='Forest-Monitor', | ||
version='0.0.1', | ||
version="1.1.0", | ||
description='Forest Monitor Package', | ||
author='Admin', | ||
author_email='[email protected]', | ||
license="MIT", | ||
packages=find_packages(), | ||
url='https://github.com/raphaelrpl/forest-monitor', | ||
) | ||
) |