Commit a809f855 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

images_list

parent b240b9a4
Pipeline #6417 passed with stage
in 1 minute and 41 seconds
......@@ -35,6 +35,7 @@ urlpatterns = [
path('project/<str:slug>/contributors', views.ProjectContributorsView.as_view(), name='project-contributors'),
path('project/<str:slug>/.gitlab-ci.yml', views.ProjectGitlabView.as_view(), name='project-gitlab'),
path('doc', views.json_doc, name='doc'),
path('images', views.images_list, name='images'),
path('docker', views.docker, name='docker'),
path('graph.svg', views.graph_svg, name='graph_svg'),
path('graph', TemplateView.as_view(template_name='rainboard/graph.html'), name='graph'),
......
......@@ -110,6 +110,13 @@ def json_doc(request):
})
def images_list(request):
"""
get the list of docker images
"""
return '\n'.join(sorted(set(img.get_image_name() for img in models.Image.objects.all())))
def docker(request):
cmd = 'build'
filters = request.GET.dict()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment