Skip to content

Commit ff7fa7e

Browse files
author
JEREMYANDRESS
committed
First Commit for Flask Celery
0 parents  commit ff7fa7e

File tree

11 files changed

+602
-0
lines changed

11 files changed

+602
-0
lines changed

.env.example

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
EXPOSE_DJANGO_PORT=8011
2+
PORT_NGINX=80
3+
EX_PORT_NGINX=8030
4+
5+
#CELERY
6+
CELERY_BROKER_URL=redis://redis:6379/0
7+
CELERY_RESULT_BACKEND=redis://redis:6379/0
8+
9+
#BD
10+
ENGINEBD=mysql
11+
USERBD=root
12+
PASSBD=kl7mn2
13+
IPBD=10.46.0.250
14+
PORTBD=3501
15+
BD=ccroaming_TEST
16+
17+
#MONITOR
18+
FLOWER_EXPOSE=5555
19+
20+
#SERVICES
21+
SEARCH_CUSTOMER_URL=http://10.10.0.241:8011/CustomerInformationManagement/CustomerInformation/V1
22+
ALLOWANCE_URL=http://10.10.0.241:8011/SolutionManagement/OfferManagement/AllowanceManagement/V1

.gitignore

+288
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,288 @@
1+
### Python template
2+
# Byte-compiled / optimized / DLL files
3+
__pycache__/
4+
*.py[cod]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
9+
data/
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
staticfiles/
55+
56+
# Sphinx documentation
57+
docs/_build/
58+
59+
# PyBuilder
60+
target/
61+
62+
# pyenv
63+
.python-version
64+
65+
66+
67+
# Environments
68+
.venv
69+
venv/
70+
ENV/
71+
env/
72+
env
73+
# Rope project settings
74+
.ropeproject
75+
76+
# mkdocs documentation
77+
/site
78+
79+
# mypy
80+
.mypy_cache/
81+
82+
83+
### Node template
84+
# Logs
85+
logs
86+
*.log
87+
npm-debug.log*
88+
yarn-debug.log*
89+
yarn-error.log*
90+
91+
# Runtime data
92+
pids
93+
*.pid
94+
*.seed
95+
*.pid.lock
96+
97+
# Directory for instrumented libs generated by jscoverage/JSCover
98+
lib-cov
99+
100+
# Coverage directory used by tools like istanbul
101+
coverage
102+
103+
# nyc test coverage
104+
.nyc_output
105+
106+
# Bower dependency directory (https://bower.io/)
107+
bower_components
108+
109+
# node-waf configuration
110+
.lock-wscript
111+
112+
# Compiled binary addons (http://nodejs.org/api/addons.html)
113+
build/Release
114+
115+
# Dependency directories
116+
node_modules/
117+
jspm_packages/
118+
119+
# Typescript v1 declaration files
120+
typings/
121+
122+
# Optional npm cache directory
123+
.npm
124+
125+
# Optional eslint cache
126+
.eslintcache
127+
128+
# Optional REPL history
129+
.node_repl_history
130+
131+
# Output of 'npm pack'
132+
*.tgz
133+
134+
# Yarn Integrity file
135+
.yarn-integrity
136+
137+
138+
### Linux template
139+
*~
140+
141+
# temporary files which can be created if a process still has a handle open of a deleted file
142+
.fuse_hidden*
143+
144+
# KDE directory preferences
145+
.directory
146+
147+
# Linux trash folder which might appear on any partition or disk
148+
.Trash-*
149+
150+
# .nfs files are created when an open file is removed but is still being accessed
151+
.nfs*
152+
153+
154+
### VisualStudioCode template
155+
.vscode/*
156+
!.vscode/settings.json
157+
!.vscode/tasks.json
158+
!.vscode/launch.json
159+
!.vscode/extensions.json
160+
161+
162+
163+
164+
165+
### Windows template
166+
# Windows thumbnail cache files
167+
Thumbs.db
168+
ehthumbs.db
169+
ehthumbs_vista.db
170+
171+
# Dump file
172+
*.stackdump
173+
174+
# Folder config file
175+
Desktop.ini
176+
177+
# Recycle Bin used on file shares
178+
$RECYCLE.BIN/
179+
180+
# Windows Installer files
181+
*.cab
182+
*.msi
183+
*.msm
184+
*.msp
185+
186+
# Windows shortcuts
187+
*.lnk
188+
189+
190+
### macOS template
191+
# General
192+
*.DS_Store
193+
.AppleDouble
194+
.LSOverride
195+
196+
# Icon must end with two \r
197+
Icon
198+
199+
# Thumbnails
200+
._*
201+
202+
# Files that might appear in the root of a volume
203+
.DocumentRevisions-V100
204+
.fseventsd
205+
.Spotlight-V100
206+
.TemporaryItems
207+
.Trashes
208+
.VolumeIcon.icns
209+
.com.apple.timemachine.donotpresent
210+
211+
# Directories potentially created on remote AFP share
212+
.AppleDB
213+
.AppleDesktop
214+
Network Trash Folder
215+
Temporary Items
216+
.apdisk
217+
218+
219+
### SublimeText template
220+
# Cache files for Sublime Text
221+
*.tmlanguage.cache
222+
*.tmPreferences.cache
223+
*.stTheme.cache
224+
225+
# Workspace files are user-specific
226+
*.sublime-workspace
227+
228+
# Project files should be checked into the repository, unless a significant
229+
# proportion of contributors will probably not be using Sublime Text
230+
# *.sublime-project
231+
232+
# SFTP configuration file
233+
sftp-config.json
234+
235+
# Package control specific files
236+
Package Control.last-run
237+
Package Control.ca-list
238+
Package Control.ca-bundle
239+
Package Control.system-ca-bundle
240+
Package Control.cache/
241+
Package Control.ca-certs/
242+
Package Control.merged-ca-bundle
243+
Package Control.user-ca-bundle
244+
oscrypto-ca-bundle.crt
245+
bh_unicode_properties.cache
246+
247+
# Sublime-github package stores a github token in this file
248+
# https://packagecontrol.io/packages/sublime-github
249+
GitHub.sublime-settings
250+
251+
252+
### Vim template
253+
# Swap
254+
[._]*.s[a-v][a-z]
255+
[._]*.sw[a-p]
256+
[._]s[a-v][a-z]
257+
[._]sw[a-p]
258+
259+
# Session
260+
Session.vim
261+
262+
# Temporary
263+
.netrwhist
264+
265+
# Auto-generated tag files
266+
tags
267+
268+
269+
# DB
270+
db.sqlite3
271+
272+
### Project template
273+
274+
class/media/
275+
276+
.pytest_cache/
277+
278+
279+
.ipython/
280+
.env
281+
.envs/*
282+
!.envs/.local/
283+
284+
285+
# django migrations
286+
**/migrations/**
287+
!**/migrations
288+
!**/migrations/__init__.py

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#sudo apt-get install libmysqlclient-dev
2+
#https://github.com/borosuman/flask-celery-periodic-task

compose/local/Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:3.6
2+
# ENV PYTHONDONTWRITEBYTECODE 1
3+
ENV PYTHONUNBUFFERED 1
4+
5+
RUN mkdir -p /home/app
6+
7+
ENV HOME=/home/app
8+
ENV APP_HOME=/home/app/web
9+
RUN mkdir $APP_HOME
10+
WORKDIR $APP_HOME
11+
12+
ADD /requirements/local.txt $APP_HOME
13+
14+
RUN pip install gunicorn; \
15+
pip install -r /home/app/web/local.txt; mkdir /log;
16+
17+

compose/production/Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:3.6
2+
# ENV PYTHONDONTWRITEBYTECODE 1
3+
ENV PYTHONUNBUFFERED 1
4+
5+
RUN mkdir -p /home/app
6+
7+
ENV HOME=/home/app
8+
ENV APP_HOME=/home/app/web
9+
RUN mkdir $APP_HOME
10+
WORKDIR $APP_HOME
11+
12+
ADD /requirements/production.txt $APP_HOME
13+
14+
RUN pip install gunicorn; \
15+
pip install -r /home/app/web/production.txt; mkdir /log;
16+
17+

etc/localtime

2.48 KB
Binary file not shown.

0 commit comments

Comments
 (0)