building stackfile support. updated template.json
This commit is contained in:
parent
e4f2902f8b
commit
2942a96d46
3 changed files with 19 additions and 23 deletions
|
@ -12,6 +12,8 @@ function appCard(data) {
|
|||
let command_check = command ? "checked" : "";
|
||||
let privileged = data.privileged || "";
|
||||
let privileged_check = privileged ? "checked" : "";
|
||||
let repository = data.repository || "";
|
||||
let source = data.image || "";
|
||||
|
||||
// if data.network is set to host, bridge, or docker set the radio button to checked
|
||||
let net_host, net_bridge, net_docker = '';
|
||||
|
@ -35,6 +37,11 @@ function appCard(data) {
|
|||
}
|
||||
|
||||
|
||||
if (repository != "") {
|
||||
source = `${repository.url}/raw/master/${repository.stackfile}`;
|
||||
}
|
||||
|
||||
|
||||
function CatagoryColor(category) {
|
||||
switch (category) {
|
||||
case 'Other':
|
||||
|
@ -47,6 +54,8 @@ function appCard(data) {
|
|||
return '<span class="badge bg-blue-lt">Dashboard</span> ';
|
||||
case 'Communication':
|
||||
return '<span class="badge bg-azure-lt">Communication</span> ';
|
||||
case 'Media':
|
||||
return '<span class="badge bg-azure-lt">Media</span> ';
|
||||
case 'CMS':
|
||||
return '<span class="badge bg-azure-lt">CMS</span> ';
|
||||
case 'Monitoring':
|
||||
|
@ -263,7 +272,7 @@ function appCard(data) {
|
|||
</div>
|
||||
<div class="col-lg-3">
|
||||
<label class="form-label">Image: </label>
|
||||
<input type="text" class="form-control" name="image" value="${data.image}"/>
|
||||
<input type="text" class="form-control" name="image" value="${source}"/>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<label class="form-label">Restart Policy: </label>
|
||||
|
|
|
@ -36,19 +36,6 @@ exports.Apps = async function(req, res) {
|
|||
for (let i = list_start; i < list_end && i < templates.length; i++) {
|
||||
let app_card = appCard(templates[i]);
|
||||
|
||||
|
||||
if (templates[i].repository) {
|
||||
|
||||
try {
|
||||
console.log(templates[i].repository.stackfile)
|
||||
} catch { console.log('no stackfile found') }
|
||||
|
||||
try {
|
||||
console.log(templates[i].repository.url)
|
||||
} catch { console.log('no url found') }
|
||||
|
||||
}
|
||||
|
||||
apps_list += app_card;
|
||||
}
|
||||
|
||||
|
|
|
@ -337,7 +337,7 @@
|
|||
"image": "ghcr.io/linuxserver/prowlarr:develop",
|
||||
"categories": [
|
||||
"Downloaders",
|
||||
"Tools"
|
||||
"Arr"
|
||||
],
|
||||
"ports": [
|
||||
"9696/tcp"
|
||||
|
@ -1144,7 +1144,7 @@
|
|||
},
|
||||
{
|
||||
"categories": [
|
||||
"Multimedia"
|
||||
"Media"
|
||||
],
|
||||
"description": "Airsonic is a free, web-based media streamer, providing ubiqutious access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.",
|
||||
"env": [
|
||||
|
@ -1371,7 +1371,7 @@
|
|||
"description": "Audacity is an easy-to-use, multi-track audio editor and recorder. Developed by a group of volunteers as open source. (https://www.audacityteam.org/)",
|
||||
"platform": "linux",
|
||||
"categories": [
|
||||
"Multimedia"
|
||||
"Media"
|
||||
],
|
||||
"logo": "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/audacity-logo.png",
|
||||
"image": "linuxserver/audacity:latest",
|
||||
|
@ -2161,7 +2161,7 @@
|
|||
"note": "",
|
||||
"description": "Kasm workspaces is a docker container streaming platform for delivering browser-based access to desktops, applications, and web services. Kasm uses devops-enabled Containerized Desktop Infrastructure (CDI) to create on-demand, disposable, docker containers that are accessible via web browser. Example use-cases include Remote Browser Isolation (RBI), Data Loss Prevention (DLP), Desktop as a Service (DaaS), Secure Remote Access Services (RAS), and Open Source Intelligence (OSINT) collections. The rendering of the graphical-based containers is powered by the open-source project [KasmVNC](https://www.kasmweb.com/kasmvnc.html?utm_campaign=LinuxServer&utm_source=kasmvnc).",
|
||||
"platform": "linux",
|
||||
"logo": "https://kasm-ci.s3.amazonaws.com/kasm_wide.png",
|
||||
"logo": "https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/kasm.png",
|
||||
"image": "linuxserver/kasm:latest",
|
||||
"privileged": true,
|
||||
"env": [
|
||||
|
@ -2269,7 +2269,7 @@
|
|||
"Communication"
|
||||
],
|
||||
"platform": "linux",
|
||||
"logo": "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mastodon-banner.png",
|
||||
"logo": "https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/mastodon.png",
|
||||
"image": "linuxserver/mastodon:latest",
|
||||
"env": [
|
||||
{
|
||||
|
@ -3063,8 +3063,8 @@
|
|||
"categories": [
|
||||
"Communication"
|
||||
],
|
||||
"description": "Rocket.Chat Server",
|
||||
"logo": "https://raw.githubusercontent.com/portapps/rocketchat-portable/master/res/papp.png",
|
||||
"description": "Rocket.Chat is an open-source fully customizable communications platform developed in JavaScript for organizations with high standards of data protection.",
|
||||
"logo": "https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/rocketchat.png",
|
||||
"note": "Rocket.Chat Server Container",
|
||||
"platform": "linux",
|
||||
"repository": {
|
||||
|
@ -4935,7 +4935,7 @@
|
|||
{
|
||||
"categories": [
|
||||
"Multimedia",
|
||||
"AI"
|
||||
"Productivity"
|
||||
],
|
||||
"description": "PhotoPrism is an AI-powered app for browsing, organizing & sharing your photo collection. It makes use of the latest technologies to tag and find pictures automatically without getting in your way.| Copy as Custom stack and EDIT environment variables.",
|
||||
"logo": "https://photoprism.app/static/img/logo.svg",
|
||||
|
@ -5721,7 +5721,7 @@
|
|||
"CMS"
|
||||
],
|
||||
"platform": "linux",
|
||||
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/joomla.png",
|
||||
"logo": "https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/joomla.png",
|
||||
"image": "joomla:latest",
|
||||
"env": [
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue