Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: Komiser #450

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added templates/komiser/assets/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/komiser/assets/screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions templates/komiser/index.ts
matbrgz marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { Output, Services } from "~templates-utils";
import { Input } from "./meta";

export function generate(input: Input): Output {
const services: Services = [];
const sshPort = input.sshPort;

services.push({
type: "app",
data: {
projectName: input.projectName,
serviceName: input.appServiceName,
source: {
type: "image",
image: input.appServiceImage,
},
domains: [
{
host: "$(EASYPANEL_DOMAIN)",
port: 3000,
},
],
mounts: [
{
type: "volume",
name: "data",
mountPath: "/data",
},
{
type: "volume",
name: "backup",
mountPath: "/backup",
},
],
ports: [
{
published: sshPort,
target: 22,
},
],
},
});

return { services };
}
47 changes: 47 additions & 0 deletions templates/komiser/meta.yaml
matbrgz marked this conversation as resolved.
Show resolved Hide resolved
matbrgz marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to configure a cloud provider via config, please add this to instructions.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea how to give instructions about it?

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Komiser
description: Komiser is an open-source cloud cost optimization and monitoring tool designed to help individuals and organizations manage their cloud resources effectively. It provides insights and recommendations to optimize costs, enhance resource utilization, and improve overall efficiency within cloud environments.
instructions: null
changeLog:
- date: 2023-9-21
description: first release
links:
- label: Website
url: https://www.komiser.io/
- label: Documentation
url: https://docs.komiser.io/
- label: Github
url: https://github.com/tailwarden/komiser
contributors:
- name: matbrgz
url: https://github.com/matbrgz
schema:
type: object
required:
- projectName
- appServiceName
- appServiceImage
- sshPort
properties:
projectName:
type: string
title: Project Name
appServiceName:
type: string
title: App Service Name
default: gogs
appServiceImage:
type: string
title: App Service Image
default: gogs/gogs:0.13.0
sshPort:
type: number
title: SSH Port
default: 2222
benefits:
- title: TODO
description: TODO
features:
- title: TODO
description: TODO
tags:
- Cloud Environment Inspector