Skip to content

Commit

Permalink
convert main procedure to js
Browse files Browse the repository at this point in the history
  • Loading branch information
elvece committed Nov 23, 2022
1 parent a3c3a37 commit ccbe0a3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
16 changes: 9 additions & 7 deletions manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
id: filebrowser
title: "File Browser"
version: 2.22.4.1
release-notes: Update to run on x86_64 architecture
release-notes: |
* Update to run on x86_64 architecture
* Utilize new eOS APIs
license: apache
wrapper-repo: "https://github.com/Start9Labs/filebrowser-wrapper"
upstream-repo: "https://github.com/filebrowser/filebrowser"
Expand All @@ -18,12 +20,12 @@ assets:
icon: icon.png
instructions: instructions.md
main:
type: docker
image: main
entrypoint: docker_entrypoint.sh
args: []
mounts:
main: /root
type: script
containers:
main:
image: main
mounts:
main: /root
health-checks:
version:
name: Database
Expand Down
3 changes: 2 additions & 1 deletion scripts/deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "https://deno.land/x/[email protected]/mod.ts";
export * from "https://deno.land/x/[email protected]/mod.ts";
export * from "https://deno.land/x/[email protected]/util.ts";
1 change: 1 addition & 0 deletions scripts/embassy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { properties } from "./procedures/properties.ts";
export { health } from "./procedures/health.ts";
export { migration } from "./procedures/migration.ts";
export { main } from "./procedures/main.ts";
11 changes: 11 additions & 0 deletions scripts/procedures/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { types as T, util } from "../deps.ts";

export const main: T.ExpectedExports.main = async (effects) => {
await effects.runDaemon(
{
command: "docker_entrypoint.sh",
args: [],
},
).wait();
return util.ok;
};

0 comments on commit ccbe0a3

Please sign in to comment.