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

(Cron) Preview Generator support #1971

Closed

Conversation

joshtrichards
Copy link
Member

Allow the user to enable and configure a cron entry for the NC Preview Generator.

To do so, add CRON_PREVIEW={hour} (allowed values for hour are 0-23 since crond uses 24H system) in the startup environment parameters for the cron service container.

For example, if your Docker environment uses UTC time the following will run the Preview Generator daily at 2:00 AM Eastern Time (also known as 6:00 AM UTC):

  cron:
    depends_on:
      - db
      - redis
      - app
    image: nextcloud:24-apache
    restart: unless-stopped
    environment:
      - CRON_PREVIEW=6
    volumes:
      - app-var-www-html:/var/www/html
    entrypoint: /cron.sh
    networks:
      - app-network

User must install the Preview Generator app ahead of time from the app store.

Allow the user to enable and configure a cron entry for the NC Preview Generator.

To do so, add CRON_PREVIEW={hour} (allowed values for hour are 0-23 since cron uses 24H system) in the startup environment parameters for the cron service container.

User must install the Preview Generator app ahead of time from the app store.

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
@J0WI
Copy link
Contributor

J0WI commented May 31, 2023

I'd prefer #1964 for a generic way to extend the image for 3rd party apps.

@J0WI
Copy link
Contributor

J0WI commented Jun 22, 2023

Closing in favour of #1964.

@J0WI J0WI closed this Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants