Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

standard cron #20

Merged
merged 5 commits into from
Nov 2, 2023
Merged

standard cron #20

merged 5 commits into from
Nov 2, 2023

Conversation

nemchik
Copy link
Member

@nemchik nemchik commented Jul 30, 2023

Base image changes:

  • add packages needed for cron to be available
    • Debian/Ubuntu don't have the option to use crond from busybox (it is not included) so they install cron through apt.
    • Alpine already includes busybox with crond.
    • Arch and Fedora will install busybox to provide crond.
  • if /defaults/crontabs/abc or /defaults/crontabs/root exist (in the downstream image) setup /config/crontabs/ for the user and import user crontabs to system
    • downstream images should only ship abc crontab unless absolutely necessary (ex: rsnapshot needs root, cron mod sets up both so the user can do whatever they want)
  • if crontabs have been setup on system, run the cron service, otherwise sleep infinity (do nothing)

These should be safe to merge anytime as they don't actually do anything unless the downstream image (or the cron mod) include crontabs, or technically the user can mount /etc/crontabs/abc or /etc/crontabs/root to their image, but we should only ever ship /defaults/crontabs/* in downstream images so we're consistent in setting up the /config/crontabs/*

Signed-off-by: Eric Nemchik <[email protected]>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this pull request! Be sure to follow the pull request template!

Signed-off-by: Eric Nemchik <[email protected]>
Signed-off-by: Eric Nemchik <[email protected]>
@LinuxServer-CI
Copy link
Collaborator

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/arch/2023-07-30-pkg-53d29339-dev-3d2b4c30ba67687ffab597ebf5f06a5045146ea6-pr-20/index.html
https://ci-tests.linuxserver.io/lspipepr/arch/2023-07-30-pkg-53d29339-dev-3d2b4c30ba67687ffab597ebf5f06a5045146ea6-pr-20/shellcheck-result.xml

Tag Passed
amd64-2023-07-30-pkg-53d29339-dev-3d2b4c30ba67687ffab597ebf5f06a5045146ea6-pr-20
arm64v8-2023-07-30-pkg-53d29339-dev-3d2b4c30ba67687ffab597ebf5f06a5045146ea6-pr-20

@nemchik nemchik marked this pull request as ready for review August 1, 2023 18:29
@nemchik nemchik requested a review from a team August 1, 2023 18:33
@nemchik nemchik marked this pull request as draft August 2, 2023 02:22
Signed-off-by: Eric Nemchik <[email protected]>
@LinuxServer-CI
Copy link
Collaborator

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/arch/2023-08-19-pkg-89581710-dev-faed72cc11b1b9ca0739188cc1ac49703c36abf3-pr-20/index.html
https://ci-tests.linuxserver.io/lspipepr/arch/2023-08-19-pkg-89581710-dev-faed72cc11b1b9ca0739188cc1ac49703c36abf3-pr-20/shellcheck-result.xml

Tag Passed
amd64-2023-08-19-pkg-89581710-dev-faed72cc11b1b9ca0739188cc1ac49703c36abf3-pr-20
arm64v8-2023-08-19-pkg-89581710-dev-faed72cc11b1b9ca0739188cc1ac49703c36abf3-pr-20

@LinuxServer-CI
Copy link
Collaborator

This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@nemchik nemchik added awaiting-approval Stale exempt and removed no-pr-activity labels Sep 22, 2023
@nemchik nemchik marked this pull request as ready for review November 1, 2023 22:44
@LinuxServer-CI
Copy link
Collaborator

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/arch/2023-11-01-pkg-b70dafb0-dev-eb42f7261dc54004d18fd96140cdcdb4dd3bb0a7-pr-20/index.html
https://ci-tests.linuxserver.io/lspipepr/arch/2023-11-01-pkg-b70dafb0-dev-eb42f7261dc54004d18fd96140cdcdb4dd3bb0a7-pr-20/shellcheck-result.xml

Tag Passed
amd64-2023-11-01-pkg-b70dafb0-dev-eb42f7261dc54004d18fd96140cdcdb4dd3bb0a7-pr-20
arm64v8-2023-11-01-pkg-b70dafb0-dev-eb42f7261dc54004d18fd96140cdcdb4dd3bb0a7-pr-20

Dockerfile Show resolved Hide resolved
@nemchik nemchik merged commit 270c967 into master Nov 2, 2023
9 checks passed
@nemchik nemchik deleted the standard-cron branch November 2, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-approval Stale exempt
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants