From 905cded55e7061481b4df95dcceaa860ae9b9ccf Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 28 Sep 2023 12:19:10 +0000 Subject: [PATCH 1/3] chore: update janitor interval --- .gitpod.yml | 11 +++++++++++ docker/production.yml | 3 +++ docker/stage.yml | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000..a681be17cb --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,11 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: pnpm install && pnpm run build + command: pnpm run dev + + diff --git a/docker/production.yml b/docker/production.yml index f585b145ad..5a61b21109 100644 --- a/docker/production.yml +++ b/docker/production.yml @@ -91,6 +91,9 @@ services: mode: global volumes: - /var/run/docker.sock:/var/run/docker.sock + environment: + - TIME_BETWEEN_RUNS=3600 + - UNUSED_TIME=6h sematext-agent: image: sematext/agent:latest diff --git a/docker/stage.yml b/docker/stage.yml index fff63e41fb..b9e92b4997 100644 --- a/docker/stage.yml +++ b/docker/stage.yml @@ -90,6 +90,9 @@ services: image: appwrite/docker-janitor deploy: mode: global + environment: + - TIME_BETWEEN_RUNS=600 + - UNUSED_TIME=10m volumes: - /var/run/docker.sock:/var/run/docker.sock From ac0dd3d17e14c706b6dc8f83fb2ef23d41aa9c5c Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 28 Sep 2023 12:21:47 +0000 Subject: [PATCH 2/3] chore: remove gitpod yml file --- .gitpod.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index a681be17cb..0000000000 --- a/.gitpod.yml +++ /dev/null @@ -1,11 +0,0 @@ -# This configuration file was automatically generated by Gitpod. -# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) -# and commit this file to your remote git repository to share the goodness with others. - -# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart - -tasks: - - init: pnpm install && pnpm run build - command: pnpm run dev - - From 16ead590d4b95109cc7a399edcfaad534cf9aa09 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 28 Sep 2023 12:27:00 +0000 Subject: [PATCH 3/3] chore: update the staging config --- docker/stage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/stage.yml b/docker/stage.yml index b9e92b4997..886c5d4fb8 100644 --- a/docker/stage.yml +++ b/docker/stage.yml @@ -93,6 +93,7 @@ services: environment: - TIME_BETWEEN_RUNS=600 - UNUSED_TIME=10m + - RUN_ON_STARTUP=true volumes: - /var/run/docker.sock:/var/run/docker.sock