Skip to content

Configuration cleanup/jobs clean up #59

Open

Description

@psyciknz

Is there a method for controlling how the config.working.json is updated, cleaned up after editing the config.json/yml?

And same with the jobs folder, this seems to hold a lot of script files that do not seem to get cleaned up. Unsure if there's a method for doing this.

Activity

  1. peterbuga commented on May 2, 2023

    @peterbuga

    @psyciknz this was buggering me too

    i've found a quick workaround, just point the HOME_DIR variable to a tmpfs mount and on every container restart the folder will clear out and regenerate the latest crontabs

    in docker-compose just modify like this:

       ....
       environment:
          HOME_DIR: "/crontab"  # <-- this can be (almost) anything but it needs to also match the config.json/yml path below
        volumes:
          - type: tmpfs
            target: /crontab
          - "/var/run/docker.sock:/var/run/docker.sock:ro"
          - "/opt/crontab/config.yml:/crontab/config.yml:rw"  # <-- important for this to be AFTER the tmpfs mount
        ....
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions