Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HOTMapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HOTMapper
HOTMapper
Commits
a3b49847
Commit
a3b49847
authored
1 year ago
by
gabriellisboaconegero
Browse files
Options
Downloads
Patches
Plain Diff
chore: Criando dockerfile
parent
c5bb11da
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+13
-0
13 additions, 0 deletions
Dockerfile
settings.py
+5
-3
5 additions, 3 deletions
settings.py
with
18 additions
and
3 deletions
Dockerfile
0 → 100644
+
13
−
0
View file @
a3b49847
FROM
monetdb/monetdb:latest
# Nome do banco para criar
ENV
MDB_CREATE_DBS=treinamento
# Senha do user monetdb
ENV
MDB_DB_ADMIN_PASS=12345
RUN
mkdir
open_data
COPY
./open_data/ ./open_data
EXPOSE
50000
This diff is collapsed.
Click to expand it.
settings.py
+
5
−
3
View file @
a3b49847
...
...
@@ -22,7 +22,7 @@ along with HOTMapper. If not, see <https://www.gnu.org/licenses/>.
import
logging
def
db_env_file_path
(
file_name
):
return
file_name
.
replace
(
'
glc22
'
,
'
monetdb
'
)
return
"
/open_data/
"
+
file_name
.
split
(
'
/
'
)[
-
1
]
# SQL dialect used by sqlalchemy.
DATABASE_DIALECT
=
'
monetdb
'
...
...
@@ -34,6 +34,7 @@ DATABASE_USER_PASSWORD = '12345'
# Host to connect to. Bulk inserts won't work remotely unless you can specify an
# absolute path in the server
DATABASE_HOST
=
'
localhost
'
DATABASE_PORT
=
'
50001
'
# Database to connect to
DATABASE
=
'
treinamento
'
...
...
@@ -42,8 +43,9 @@ DATABASE = 'treinamento'
YEAR_COLUMN
=
'
ano_censo
'
# URI structure. Standards to login:password model, but can be changed as needed.
DATABASE_URI
=
'
{}://{}:{}@{}/{}
'
.
format
(
DATABASE_DIALECT
,
DATABASE_USER
,
DATABASE_USER_PASSWORD
,
DATABASE_HOST
,
DATABASE
)
DATABASE_URI
=
'
{}://{}:{}@{}:{}/{}
'
.
format
(
DATABASE_DIALECT
,
DATABASE_USER
,
DATABASE_USER_PASSWORD
,
DATABASE_HOST
,
DATABASE_PORT
,
DATABASE
)
# Folder and file where backup is created - absolute path
BACKUP_FOLDER
=
'
/home/banco/dumps/monetdb/
'
BACKUP_FILE
=
'
backupdadoseducacionais
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment