Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Yaml-Renderer
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
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
Azubi
Yaml-Renderer
Commits
0af0ec5c
Commit
0af0ec5c
authored
6 years ago
by
Eric Kunze
Committed by
Eric Kunze
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Switched yaml-loader from oyaml to pythonordereddictloader
New loader is installable via apt instead of pip
parent
59f31697
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+2
-2
2 additions, 2 deletions
Dockerfile
flask-server.py
+3
-2
3 additions, 2 deletions
flask-server.py
with
5 additions
and
4 deletions
Dockerfile
+
2
−
2
View file @
0af0ec5c
FROM
docker.imp.fu-berlin.de:5000/pub/python-flask
RUN
apt-get update
\
&&
apt-get
install
-y
python3-
pip
\
&&
pip3
install
oyaml
&&
apt-get
install
-y
python3-
yamlordereddictloader
EXPOSE
5000
...
...
This diff is collapsed.
Click to expand it.
flask-server.py
+
3
−
2
View file @
0af0ec5c
#!/usr/bin/python3
from
flask
import
Flask
,
render_template
,
request
,
abort
import
oyaml
as
yaml
import
yaml
import
yamlordereddictloader
as
yamlODL
import
json
from
collections
import
OrderedDict
...
...
@@ -21,7 +22,7 @@ def loadyaml(filename):
file
=
open
(
filepath
+
filename
,
"
r
"
)
yamldata
=
file
.
read
()
global
DATA
DATA
=
yaml
.
load
(
yamldata
)
DATA
=
yaml
.
load
(
yamldata
,
Loader
=
yamlODL
.
Loader
)
file
.
close
()
#Json
...
...
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