mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
Added: ability to search for a complete dockerHub repository
This commit is contained in:
parent
54ef9b5cc3
commit
ebe827028f
Binary file not shown.
@ -408,6 +408,7 @@ case 'search_dockerhub':
|
|||||||
|
|
||||||
$communityTemplates = readJsonFile($caPaths['community-templates-info']);
|
$communityTemplates = readJsonFile($caPaths['community-templates-info']);
|
||||||
$filter = str_replace(" ","%20",$filter);
|
$filter = str_replace(" ","%20",$filter);
|
||||||
|
$filter = str_replace("/","%20",$filter);
|
||||||
$jsonPage = shell_exec("curl -s -X GET 'https://registry.hub.docker.com/v1/search?q=$filter&page=$pageNumber'");
|
$jsonPage = shell_exec("curl -s -X GET 'https://registry.hub.docker.com/v1/search?q=$filter&page=$pageNumber'");
|
||||||
$pageresults = json_decode($jsonPage,true);
|
$pageresults = json_decode($jsonPage,true);
|
||||||
$num_pages = $pageresults['num_pages'];
|
$num_pages = $pageresults['num_pages'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user