Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM tiangolo/uwsgi-nginx:python3.8

LABEL maintainer="Pritam Sarkar <001pritam2012@gmail.com>"

#RUN make setup
#
## Move the base entrypoint to reuse it
#RUN mv /entrypoint.sh /uwsgi-nginx-entrypoint.sh
## Copy the entrypoint that will generate Nginx additional configs
#COPY entrypoint.sh /entrypoint.sh
#RUN chmod +x /entrypoint.sh
#
#ENTRYPOINT ["/entrypoint.sh"]

# Run the start script provided by the parent image tiangolo/uwsgi-nginx.
# It will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Supervisor, which in turn will start Nginx and uWSGI
#CMD ["/prestart.sh"]
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ Contributing
------------------------------------------------------------------------------
1. Stargaze this repository
1. Fork this repository
1. Add this project as `upstream`
1. Commit your changes
1. Create pull request to `development` branch
1. Create pull request to `upstream/development` branch

[![](https://sourcerer.io/fame/pritam001/pritam001/pyflask-microservice-base/images/0)](https://sourcerer.io/fame/pritam001/pritam001/pyflask-microservice-base/links/0)
[![](https://sourcerer.io/fame/pritam001/pritam001/pyflask-microservice-base/images/1)](https://sourcerer.io/fame/pritam001/pritam001/pyflask-microservice-base/links/1)
Expand All @@ -109,6 +110,7 @@ TODO
- [x] Introduction of testing tools
- [ ] Testing tools documentation
- [x] Code coverage
- [ ] Version handling by tbump
- [x] Version handling by tbump
- [x] Docker support
- [ ] Add CoC, Contribution guidelines, PR and issue templates

4 changes: 4 additions & 0 deletions docker_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
app="docker.image.pyflask-base"
docker build -t ${app} .
docker run -d -p 56733:80 --name=${app} -v $PWD:/app ${app}
7 changes: 7 additions & 0 deletions documentation/wiki/tbump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Track remote branch from local repository

`git push -u origin <branch_name>`

### How to bump version with tbump

`tbump 1.0.0`
Empty file added prestart.sh
Empty file.
3 changes: 3 additions & 0 deletions uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[uwsgi]
module = service
callable = app