Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rosetta
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
ExaCT
Rosetta
Commits
d2040669
Commit
d2040669
authored
3 years ago
by
Stefano Alberto Russo
Browse files
Options
Downloads
Patches
Plain Diff
Added support for genrating ORM model relationships graphs.
parent
174207b5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
services/webapp/Dockerfile
+8
-5
8 additions, 5 deletions
services/webapp/Dockerfile
services/webapp/code/rosetta/settings.py
+2
-1
2 additions, 1 deletion
services/webapp/code/rosetta/settings.py
with
10 additions
and
6 deletions
services/webapp/Dockerfile
+
8
−
5
View file @
d2040669
...
@@ -63,6 +63,14 @@ COPY db_conf.sh /db_conf.sh
...
@@ -63,6 +63,14 @@ COPY db_conf.sh /db_conf.sh
RUN
mkdir
/var/log/webapp/
&&
chown
rosetta:rosetta /var/log/webapp/
RUN
mkdir
/var/log/webapp/
&&
chown
rosetta:rosetta /var/log/webapp/
#------------------------------
# Viz
#------------------------------
RUN
apt
install
python-pygraphviz graphviz-dev
-y
RUN
pip3
install
django-extensions pygraphviz
# Example usage: rosetta/shell webapp "cd /opt/code && python3 manage.py graph_models core_app --exclude-models LoginToken,Text -o ORM.png"
#------------------------------
#------------------------------
# Supervisord
# Supervisord
#------------------------------
#------------------------------
...
@@ -81,8 +89,3 @@ COPY prestartup_webapp.sh /prestartup/
...
@@ -81,8 +89,3 @@ COPY prestartup_webapp.sh /prestartup/
RUN
touch
-m
/prestartup/prestartup_webapp.sh
RUN
touch
-m
/prestartup/prestartup_webapp.sh
This diff is collapsed.
Click to expand it.
services/webapp/code/rosetta/settings.py
+
2
−
1
View file @
d2040669
...
@@ -42,7 +42,8 @@ INSTALLED_APPS = [
...
@@ -42,7 +42,8 @@ INSTALLED_APPS = [
'
django.contrib.messages
'
,
'
django.contrib.messages
'
,
'
django.contrib.staticfiles
'
,
'
django.contrib.staticfiles
'
,
'
rest_framework
'
,
'
rest_framework
'
,
'
rest_framework_swagger
'
,
'
rest_framework_swagger
'
,
'
django_extensions
'
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
...
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