Skip to content

Commit

Permalink
add number of layers
Browse files Browse the repository at this point in the history
  • Loading branch information
Filirom1 authored and Brad van der Laan committed Jun 11, 2018
1 parent ac03184 commit f238fdb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/image/image-details-directive.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ <h2>
</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><span class="glyphicon glyphicon-align-justify"></span> Layers</label>
<div class="col-sm-10">
<p class="form-control-static">{{imageDetails.layers}}</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><span class="glyphicon glyphicon-eye-open"></span> Docker version</label>
<div class="col-sm-10">
Expand Down
1 change: 1 addition & 0 deletions app/services/registry-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ angular.module('registry-services', ['ngResource'])
res.digest = headers('docker-content-digest');
res.architecture = resp.architecture;
res.dockerfile = dockerfile
res.layers = dockerfile.length
return res;
},
},
Expand Down

0 comments on commit f238fdb

Please sign in to comment.