Skip to content

Commit 03b60f2

Browse files
committed
ADD all
1 parent 6a86887 commit 03b60f2

32 files changed

+1106
-412
lines changed

.gitignore

+19-72
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
helm/**/secret-values.yaml
2+
**/.env
3+
#
4+
examples/
5+
6+
# tmp files
7+
tmp/
8+
9+
# Examples
10+
local-examples/
11+
12+
# Docker Default Enviroment Variables
13+
.env
14+
15+
# ---> Python
116
# Byte-compiled / optimized / DLL files
217
__pycache__/
318
*.py[cod]
@@ -8,6 +23,7 @@ __pycache__/
823

924
# Distribution / packaging
1025
.Python
26+
env/
1127
build/
1228
develop-eggs/
1329
dist/
@@ -19,13 +35,10 @@ lib64/
1935
parts/
2036
sdist/
2137
var/
22-
wheels/
23-
pip-wheel-metadata/
24-
share/python-wheels/
2538
*.egg-info/
2639
.installed.cfg
2740
*.egg
28-
MANIFEST
41+
*Pipfile.lock
2942

3043
# PyInstaller
3144
# Usually these files are written by a python script from a template
@@ -40,90 +53,24 @@ pip-delete-this-directory.txt
4053
# Unit test / coverage reports
4154
htmlcov/
4255
.tox/
43-
.nox/
4456
.coverage
4557
.coverage.*
4658
.cache
4759
nosetests.xml
4860
coverage.xml
49-
*.cover
50-
*.py,cover
51-
.hypothesis/
52-
.pytest_cache/
61+
*,cover
5362

5463
# Translations
5564
*.mo
5665
*.pot
5766

5867
# Django stuff:
5968
*.log
60-
local_settings.py
61-
db.sqlite3
62-
db.sqlite3-journal
63-
64-
# Flask stuff:
65-
instance/
66-
.webassets-cache
67-
68-
# Scrapy stuff:
69-
.scrapy
7069

7170
# Sphinx documentation
7271
docs/_build/
7372

7473
# PyBuilder
7574
target/
7675

77-
# Jupyter Notebook
78-
.ipynb_checkpoints
79-
80-
# IPython
81-
profile_default/
82-
ipython_config.py
83-
84-
# pyenv
85-
.python-version
86-
87-
# pipenv
88-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91-
# install all needed dependencies.
92-
#Pipfile.lock
93-
94-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95-
__pypackages__/
96-
97-
# Celery stuff
98-
celerybeat-schedule
99-
celerybeat.pid
100-
101-
# SageMath parsed files
102-
*.sage.py
103-
104-
# Environments
105-
.env
106-
.venv
107-
env/
108-
venv/
109-
ENV/
110-
env.bak/
111-
venv.bak/
112-
113-
# Spyder project settings
114-
.spyderproject
115-
.spyproject
116-
117-
# Rope project settings
118-
.ropeproject
119-
120-
# mkdocs documentation
121-
/site
122-
123-
# mypy
124-
.mypy_cache/
125-
.dmypy.json
126-
dmypy.json
127-
128-
# Pyre type checker
129-
.pyre/
76+
learn/

.vscode/extensions.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"ms-python.python"
4+
]
5+
}

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.pythonPath": "/home/arpagon/.local/share/virtualenvs/python-pip-docker-template-1Wbd703r/bin/python"
3+
}

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 0.1.1
2+
3+
* First Verision

Dockerfile

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# pull official base image
2+
FROM python:3.9.6-alpine3.14
3+
4+
# set environment varibles
5+
ENV IS_DOCKER_CONTAINER Yes
6+
ENV LOG_LEVEL INFO
7+
8+
# set work directory
9+
WORKDIR /usr/src/app/
10+
11+
#RUN apk --no-cache add --virtual bash mariadb-connector-c
12+
RUN apk --no-cache add bash \
13+
curl \
14+
git
15+
16+
# install dependencies
17+
RUN pip install --upgrade pip
18+
RUN pip install pipenv
19+
COPY ./Pipfile /usr/src/app/Pipfile
20+
RUN pipenv install --skip-lock --system
21+
22+
# copy project
23+
COPY python-pip-docker-template /usr/src/app/python-pip-docker-template/
24+
COPY *.md /usr/src/app/python-pip-docker-template/
25+
COPY conf/uwsgi.ini /app/
26+
COPY conf/nginx/ /etc/nginx/conf.d/
27+
28+
WORKDIR /usr/src/app/python-pip-docker-template/
29+
RUN python setup.py install
30+
CMD python python-pip-docker-template/app.py
31+
32+
# run entrypoint.sh
33+
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
34+
35+
ARG BUILD_DATE
36+
ARG VCS_REF
37+
ARG VERSION
38+
39+
LABEL org.label-schema.build-date=$BUILD_DATE \
40+
org.label-schema.name="python-pip-docker-template" \
41+
org.label-schema.description="Here is a simple Python Flask for receiving a recording from doe.dialbox.cloud." \
42+
org.label-schema.url="https://www.sapian.cloud" \
43+
org.label-schema.vcs-url="https://git.sapian.com.co/Sapian/python-pip-docker-template" \
44+
org.label-schema.maintainer="[email protected]" \
45+
org.label-schema.vcs-ref=$VCS_REF \
46+
org.label-schema.vendor1="Sapian" \
47+
org.label-schema.version=$VERSION \
48+
org.label-schema.vicidial-schema-version="1"

0 commit comments

Comments
 (0)