summaryrefslogtreecommitdiff
path: root/registry-browser/static/index.html
blob: d6a28710f76c2dcc396272d39df1c2d92b1b24d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<html>
<head>
  <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
  <META HTTP-EQUIV="EXPIRES" CONTENT="0">
  <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

  <link href='https://fonts.googleapis.com/css?family=Merriweather+Sans:200,700' rel='stylesheet' type='text/css'>
  <link href='https://code.jquery.com/ui/1.11.4/themes/overcast/jquery-ui.css' rel='stylesheet' type='text/css'>

  <script type='text/javascript' src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
  <script type='text/javascript' src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script> 
  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script>

  <style>
    h1, h2, h3 {
       font-family: "Merriweather Sans", Arial, serif;
       font-weight: 700;
    }

    a, a:visited {
       color: black;
       text-decoration: none;       
    }

    hr {
       border: none;
       height: 1px;
       color: #99c747;
       background-color: #99c747;
    }

    a:hover {
       color: #99c747;
       text-decoration: none;
    }

    body {
       font-family: "Merriweather Sans", Arial, serif;
       font-weight: 200;
    }

    blockquote {
       font-family: courier;
       margin-left: 20px;
       padding: 10px;
       background-color: #eeeeee;
       border-left: 3px solid #99c747;
    }

    .list {
       margin: 0;
       padding: 20px 0 0;
    }

    .list > li {
       display: inline-block;
       width: 33%;
       background-color: white;
       border: 3px solid #99c747;
       padding: 10px;
       margin: 5px;
       border-radius: 10px;
       box-shadow: inset 0 1px 0 #fff;
    }

    .description {
       font-famiy: sans-serif;
       font-size: 70%;
    }

    .tags-header {
       padding-right: 5px;
       font-size: 90%;
    }

    .formatted-tags {
       font-weight: normal;
       white-space: normal;
    }

    .formatted-tags > li {
       display: inline-block;
       font-family: sans-serif;
       font-size: 90%;
       background-color: #99c747;
       border-radius: 5px;
       padding: 2px;
       white-space: nowrap;
       margin-top: 1px;
       margin-bottom: 1px;
       margin-left: 3px;
       margin-right: 3px;
       color: white;
    }

    h4 {
       font-size: 1.5em;
       margin: 0 0 0.3rem;
       font-weight: bold;
    }

    input {
       border: solid 1px #ccc;
       border-radius: 5px;
       padding: 7px 14px;
       margin-bottom: 10px
    }

    input:focus {
       outline: none;
       border-color: #aaa;
    }
</style>

<script type="text/javascript" src="util.js"></script>
<script type="text/javascript">

$(function() {
   // get the top-level list of available repositories
   $.getJSON("/registry/all", function(repositoryData) {	
      items = repositoryData["repositories"];
      if(items === null)
         return;

      $.each(items, function(i, e) {
	  // force 'latest' to be the first tag displayed
	  sorted_tags = e['tags'];
	  latest_idx = sorted_tags.indexOf('latest');
	  if(latest_idx > 0) {
	     sorted_tags.splice(latest_idx, 1);
	     sorted_tags.unshift('latest');
	  }

	  e['formatted-name'] = '<a href="' + e['link'] + '">' + e['name'] + '</a>';
     	  e['formatted-tags'] = '<li>' + sorted_tags.join('</li><li>') + '</li>';
      });

      options = {
          valueNames : ['name', 'tags'],
          item: 'repo-item'
      };

      var repoList = new List('repo-list', options, items);
   });
});

</script>

</head>
<body>
<h1><img style="vertical-align: middle; width: 150px" src="https://www.linaro.org/app/images/linaro-logo-web.png"/>
Aarch64 Docker Registry</h1>

<h2>Available Images</h2>

<div id="repo-list">
<input class="search" placeholder="Search"/>
<ul class="list"></ul>
</div>

<div style="display:none;">
    <!-- A template element is needed when list is empty, TODO: needs a better solution -->
    <li id="repo-item">
       <h4 class="formatted-name"></h4>
       <span class="tags-header">Tags:</span><span class="formatted-tags"></span>
       <hr/>
       <span class="description"></span>
    </li>
</div>

<br/><br/>

<h2>Overview and Instructions</h2>

<p>This is a privately-run docker registry containing repositories of aarch64 images for use with Docker on aarch64 platforms hosted on CoreOS quay.io.  Details, including instructions for pulling images, can be found by clicking on each image name.


<p>
Images may be pulled from this using the <code>docker pull</code> command:<br/><br/>
<code>docker pull quay.io/linaro/<b><i>repository:tag</i></b></code><br/><br/>
i.e.<br/><br/>
<code>docker pull quay.io/linaro/<b><i>centos:latest</i></b></code>
</p>

<!--
<br/>
<br/>

<p>You may receive an error from your Docker client regarding an unknown CA certificate:
<blockquote>
Error response from daemon:<br/>
v2 ping attempt failed with error: Get https://docker-registry.linaro.org/v2/: x509: certificate signed by unknown authority<br/>
v1 ping attempt failed with error: Get https://docker-registry.linaro.org/v1/_ping: x509: certificate signed by unknown authority. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `-insecure-registry docker-registry.linaro.org` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/docker-registry.linaro.org/ca.crt
</blockquote>
To resolve this issue:
<ol>
	<li>Retrieve the "GoDaddy Certificate Bundles - G2" from this page <a target="_blank" href="https://certs.godaddy.com/repository">https://certs.godaddy.com/repository</a> (<a href="https://certs.godaddy.com/repository/gd_bundle-g2.crt">direct link</a>)
	<li>Place it in a file named <code>/etc/docker/certs.d/docker-registry.linaro.org/ca.crt</code> on your system
	<li>Restart the Docker daemon
</ol>
</p>
-->

</body>
</html>