Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CSS-Engine-Python-Cusca
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proyectos-Innovacion-2024
CSS-Engine-Python-Cusca
Commits
e1e05db6
Commit
e1e05db6
authored
May 09, 2024
by
Cristian Aguirre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update conf and script volume
parent
b4f5b77c
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
6 additions
and
10 deletions
+6
-10
Dockerfile
Dockerfile
+1
-2
Process.py
app/main/engine/service/Process.py
+1
-1
Utils.py
app/main/engine/util/Utils.py
+1
-3
conf.yml
conf/conf.yml
+0
-0
match-and-exclude-records-actions_v1.py
conf/scripts/match-and-exclude-records-actions_v1.py
+0
-0
config.py
config.py
+1
-1
Dockerfile
deploy_emr/Dockerfile
+0
-0
docker-compose.yaml
docker-compose.yaml
+1
-2
gunicorn-cfg.py
gunicorn-cfg.py
+1
-1
No files found.
Dockerfile
View file @
e1e05db6
...
...
@@ -2,9 +2,8 @@ FROM python:3.10-slim-buster
ENV
FLASK_APP=run.py
COPY
run.py flask_app.py gunicorn-cfg.py requirements.txt config.py
conf.yml
/
COPY
run.py flask_app.py gunicorn-cfg.py requirements.txt config.py /
COPY
app app
COPY
scripts scripts
RUN
pip
install
--upgrade
pip
RUN
pip cache purge
RUN
pip
install
-r
requirements.txt
...
...
app/main/engine/service/Process.py
View file @
e1e05db6
...
...
@@ -31,7 +31,7 @@ class Process:
if
isinstance
(
script_name
,
type
(
None
)):
raise
ModuleNotFoundError
(
f
"Error al descargar script desde volumen"
)
path_script
=
"scripts/"
+
script_name
path_script
=
"
conf/
scripts/"
+
script_name
module
=
path_script
[:
-
3
]
.
replace
(
"/"
,
"."
)
import_module
=
importlib
.
import_module
(
module
)
...
...
app/main/engine/util/Utils.py
View file @
e1e05db6
...
...
@@ -3,19 +3,17 @@ from typing import Dict, Any, List
import
os
import
shutil
from
enum
import
Enum
# from pyspark.sql import SparkSession
import
json
from
app.main.engine.enum.CodeResponseEnum
import
CodeResponseEnum
from
app.main.engine.util.Timezone
import
Timezone
# from config import Config as cfg
from
app.main.engine.enum.StatusEnum
import
StatusEnum
from
app.main.engine.enum.SufixEnum
import
SufixEnum
from
app.main.engine.enum.FixedFieldsEnum
import
FixedFieldsEnum
from
app.main.engine.enum.DescResponseEnum
import
DescResponseEnum
from
app.main.engine.models.ResultMode
import
ResultModel
class
Utils
:
def
__init__
(
self
,
app
)
->
None
:
...
...
conf.yml
→
conf
/conf
.yml
View file @
e1e05db6
File moved
scripts/match-and-exclude-records-actions_v1.py
→
conf/
scripts/match-and-exclude-records-actions_v1.py
View file @
e1e05db6
File moved
config.py
View file @
e1e05db6
...
...
@@ -2,7 +2,7 @@ import os
from
decouple
import
config
import
yaml
conf
=
yaml
.
safe_load
(
open
(
'conf.yml'
))
conf
=
yaml
.
safe_load
(
open
(
'conf
/conf
.yml'
))
conf
=
conf
[
"app"
]
...
...
deploy/Dockerfile
→
deploy
_emr
/Dockerfile
View file @
e1e05db6
File moved
docker-compose.yaml
View file @
e1e05db6
...
...
@@ -16,8 +16,7 @@ services:
ports
:
-
"
9500:8000"
volumes
:
-
"
./conf.yml:/conf.yml"
-
"
./scripts/match-and-exclude-records-actions_v1.py:/scripts/match-and-exclude-records-actions_v1.py"
-
"
./conf:/conf"
networks
:
css-cusca-network
:
...
...
gunicorn-cfg.py
View file @
e1e05db6
...
...
@@ -3,7 +3,7 @@ Copyright (c) 2019 - present AppSeed.us
"""
import
yaml
conf
=
yaml
.
safe_load
(
open
(
'conf.yml'
))
conf
=
yaml
.
safe_load
(
open
(
'conf
/conf
.yml'
))
conf
=
conf
[
"app"
][
"gunicorn"
]
bind
=
conf
[
"bind"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment