Fix repository linking
This commit is contained in:
parent
46991e47a6
commit
dbb0dcface
2 changed files with 4 additions and 3 deletions
|
@ -2531,14 +2531,14 @@ quayApp.directive('buildLogCommand', function () {
|
||||||
'': function(pieces) {
|
'': function(pieces) {
|
||||||
var rnamespace = pieces.length == 1 ? '_' : pieces[0];
|
var rnamespace = pieces.length == 1 ? '_' : pieces[0];
|
||||||
var rname = pieces[pieces.length - 1];
|
var rname = pieces[pieces.length - 1];
|
||||||
return 'https://index.docker.io/' + rnamespace + '/' + rname + '/';
|
return 'https://index.docker.io/u/' + rnamespace + '/' + rname + '/';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var kindHandlers = {
|
var kindHandlers = {
|
||||||
'FROM': function(title) {
|
'FROM': function(title) {
|
||||||
var pieces = title.split('/');
|
var pieces = title.split('/');
|
||||||
var registry = pieces.length < 2 ? '' : pieces[0];
|
var registry = pieces.length < 3 ? '' : pieces[0];
|
||||||
if (!registryHandlers[registry]) {
|
if (!registryHandlers[registry]) {
|
||||||
return title;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,8 @@ class TestBuildLogs(BuildLogs):
|
||||||
sentence = get_sentence()
|
sentence = get_sentence()
|
||||||
command = random.choice(self.COMMAND_TYPES)
|
command = random.choice(self.COMMAND_TYPES)
|
||||||
if command == 'FROM':
|
if command == 'FROM':
|
||||||
sentence = random.choice(['ubuntu', 'quay.io/devtable/simple',
|
sentence = random.choice(['ubuntu', 'lopter/raring-base',
|
||||||
|
'quay.io/devtable/simple',
|
||||||
'quay.io/buynlarge/orgrepo',
|
'quay.io/buynlarge/orgrepo',
|
||||||
'stackbrew/ubuntu:precise'])
|
'stackbrew/ubuntu:precise'])
|
||||||
|
|
||||||
|
|
Reference in a new issue