-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/moodle
- Loading branch information
Showing
26 changed files
with
692 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Output, Services } from "~templates-utils"; | ||
import { Input } from "./meta"; | ||
|
||
export function generate(input: Input): Output { | ||
const services: Services = []; | ||
|
||
services.push({ | ||
type: "app", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.appServiceName, | ||
env: [ | ||
`CLOUDCMD_ROOT=/mnt/fs`, | ||
`CLOUDCMD_AUTH=true`, | ||
`CLOUDCMD_USERNAME=${input.username}`, | ||
`CLOUDCMD_PASSWORD=${input.password}`, | ||
].join("\n"), | ||
source: { | ||
type: "image", | ||
image: input.appServiceImage, | ||
}, | ||
domains: [ | ||
{ | ||
host: "$(EASYPANEL_DOMAIN)", | ||
port: 80, | ||
}, | ||
], | ||
mounts: [ | ||
{ | ||
type: "bind", | ||
hostPath: "/root", | ||
mountPath: "/root", | ||
}, | ||
{ | ||
type: "bind", | ||
hostPath: "/", | ||
mountPath: "/mnt/fs", | ||
}, | ||
], | ||
}, | ||
}); | ||
|
||
return { services }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Cloud Commander | ||
description: Cloud Commander is a file manager for the web. It includes a command-line console and a text editor. Cloud Commander helps you manage your server and work with files, directories and programs in a web browser from any computer, mobile or tablet. | ||
instructions: | ||
changeLog: | ||
- date: 2024-01-22 | ||
description: first release | ||
links: | ||
- label: Website | ||
url: https://cloudcmd.io | ||
- label: Github | ||
url: https://github.com/coderaiser/cloudcmd | ||
contributors: | ||
- name: Serban Alexandru | ||
url: https://github.com/serban-alexandru | ||
schema: | ||
type: object | ||
required: | ||
- projectName | ||
- appServiceName | ||
- appServiceImage | ||
- username | ||
- password | ||
properties: | ||
projectName: | ||
type: string | ||
title: Project Name | ||
appServiceName: | ||
type: string | ||
title: App Service Name | ||
default: cloudcmd | ||
appServiceImage: | ||
type: string | ||
title: App Service Image | ||
default: coderaiser/cloudcmd:17.0.0-alpine | ||
username: | ||
type: string | ||
title: Username | ||
default: admin | ||
password: | ||
type: string | ||
title: Password |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { Output, randomPassword, Services } from "~templates-utils"; | ||
import { Input } from "./meta"; | ||
|
||
export function generate(input: Input): Output { | ||
const services: Services = []; | ||
const databasePassword = randomPassword(); | ||
|
||
services.push({ | ||
type: "app", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.appServiceName, | ||
env: [ | ||
`CODER_ACCESS_URL=https://$(PRIMARY_DOMAIN)`, | ||
`CODER_HTTP_ADDRESS=0.0.0.0:80`, | ||
`CODER_PG_CONNECTION_URL=postgres://postgres:${databasePassword}@$(PROJECT_NAME)_${input.databaseServiceName}:5432/$(PROJECT_NAME)?sslmode=disable`, | ||
].join("\n"), | ||
source: { | ||
type: "image", | ||
image: input.appServiceImage, | ||
}, | ||
deploy: { | ||
groups: ["998", "999"], | ||
}, | ||
domains: [ | ||
{ | ||
host: "$(EASYPANEL_DOMAIN)", | ||
port: 80, | ||
}, | ||
], | ||
mounts: [ | ||
{ | ||
type: "bind", | ||
hostPath: "/var/run/docker.sock", | ||
mountPath: "/var/run/docker.sock", | ||
}, | ||
{ | ||
type: "volume", | ||
name: "config", | ||
mountPath: "/home/coder/.config", | ||
}, | ||
], | ||
}, | ||
}); | ||
|
||
services.push({ | ||
type: "postgres", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.databaseServiceName, | ||
password: databasePassword, | ||
}, | ||
}); | ||
|
||
return { services }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Coder | ||
description: Coder is an open source cloud development environment (CDE) that you download and host in your cloud. Deploy a single solution in seconds that provisions the infrastructure, IDE, language, and tools your developers desire. Upgrade to the Enterprise version and add security, governance, and observability capabilities for Platform teams. | ||
instructions: | ||
changeLog: | ||
- date: 2024-01-23 | ||
description: first release | ||
links: | ||
- label: Website | ||
url: https://coder.com | ||
- label: Documentation | ||
url: https://coder.com/docs/v2/latest | ||
- label: Github | ||
url: https://github.com/coder/coder | ||
contributors: | ||
- name: Serban Alexandru | ||
url: https://github.com/serban-alexandru | ||
schema: | ||
type: object | ||
required: | ||
- projectName | ||
- appServiceName | ||
- appServiceImage | ||
- databaseServiceName | ||
properties: | ||
projectName: | ||
type: string | ||
title: Project Name | ||
appServiceName: | ||
type: string | ||
title: App Service Name | ||
default: coder | ||
appServiceImage: | ||
type: string | ||
title: App Service Image | ||
default: ghcr.io/coder/coder:latest | ||
databaseServiceName: | ||
type: string | ||
title: Database Service Name | ||
default: coder-db |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { Output, Services } from "~templates-utils"; | ||
import { Input } from "./meta"; | ||
|
||
export function generate(input: Input): Output { | ||
const services: Services = []; | ||
|
||
services.push({ | ||
type: "app", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.appServiceName, | ||
env: [ | ||
`ELASTIC_PASSWORD=${input.password}`, | ||
`discovery.type=single-node`, | ||
`xpack.security.enabled=true`, | ||
].join("\n"), | ||
source: { | ||
type: "image", | ||
image: input.appServiceImage, | ||
}, | ||
domains: [ | ||
{ | ||
host: "$(EASYPANEL_DOMAIN)", | ||
https: true, | ||
port: 9200, | ||
path: "/", | ||
}, | ||
], | ||
mounts: [ | ||
{ | ||
type: "volume", | ||
name: "data", | ||
mountPath: "/usr/share/elasticsearch/data", | ||
}, | ||
], | ||
resources: { | ||
memoryReservation: 0, | ||
memoryLimit: 1024, | ||
cpuReservation: 0, | ||
cpuLimit: 0, | ||
}, | ||
}, | ||
}); | ||
|
||
return { services }; | ||
} |
Oops, something went wrong.