Skip to content

Commit

Permalink
Allow image urls to be used as container images
Browse files Browse the repository at this point in the history
  • Loading branch information
nzxl101 committed Jun 24, 2024
1 parent 96a6752 commit 5da7224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion root/app/www/public/container-alias.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"apprise": ["apprise-api"],
"grafana": ["grafana-image-renderer"],
"portainer": ["portainer-ce", "portainer-be", "portainer_agent", "portainer-ee"],
"prometheus": ["node-exporter"]
"prometheus": ["node-exporter"],
"https://www.pgadmin.org/static/COMPILED/assets/img/postgres-alt.svg": ["pgadmin4"]
}
4 changes: 2 additions & 2 deletions root/app/www/public/functions/icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function getIcons($bustCache = false)
if (!empty($iconList)) {
setFile(LOGO_FILE, $iconList);
} else { //-- GH REQUST FAILED, USE EXISTING
$iconList = getFile(LOGO_FILE);
$iconList = getFile(LOGO_FILE);
}
} else {
$iconList = getFile(LOGO_FILE);
Expand Down Expand Up @@ -63,7 +63,7 @@ function getIcon($inspect)

foreach ($aliasList as $name => $aliasOptions) {
if (in_array($image, $aliasOptions)) {
return ICON_URL . $icons[$name];
return str_contains($name, 'http') ? $name : ICON_URL . $icons[$name];
}
}
}
Expand Down

0 comments on commit 5da7224

Please sign in to comment.