Skip to content

Meta-Network/meta-cms-housekeep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meta-CMS-Housekeep

Regularly clean up task workspaces.

Motivation

Meta-CMS-BE creates workspace directories (in docker) on the server, it may not have permission to clean up workspace directories. We don't want to run Meta-CMS-BE as root,so we created this project to run housekeeping scripts inside a Docker container to clean up workspace directories.

Example

# Default configuration,dry run
docker run  -it -v /var/tmp/docker-cms-be:/workdir metaio/meta-cms-housekeep /bin/sh dry_run.sh
# Custom WORKSPACE_DIR&MTIME,dry run
docker run  -it -v /var/tmp/docker-cms-be:/workspaces -e META_CMS_TASK_WORKSPACE_DIR="/workspaces" -e META_CMS_TASK_WORKSPACE_MTIME="+14" metaio/meta-cms-housekeep /bin/sh dry_run.sh

# Default configuration,clean
docker run  -it -v /var/tmp/docker-cms-be:/workdir metaio/meta-cms-housekeep /bin/sh clean.sh
# Custom WORKSPACE_DIR&MTIME,clean
docker run  -it -v /var/tmp/docker-cms-be:/workspaces -e META_CMS_TASK_WORKSPACE_DIR="/workspaces" -e META_CMS_TASK_WORKSPACE_MTIME="+14" metaio/meta-cms-housekeep /bin/sh clean.sh

License

MIT License

About

Meta Space CMS Housekeep

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published