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

Specify an interval for regularly downloads #126

Open
jokay opened this issue Feb 16, 2022 · 2 comments
Open

Specify an interval for regularly downloads #126

jokay opened this issue Feb 16, 2022 · 2 comments

Comments

@jokay
Copy link

jokay commented Feb 16, 2022

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

We would like to have an environment variable which allows to specify an interval for regularly image downloads.

With this approach the container would not be stopped after the command.

Describe alternatives you've considered

Currently we are using cron and three seperate commands to achieve this.

Additional context

e.g. INTERVAL (in seconds) of 86400 (24h).

docker-compose.yml

services:
  app:
    image: docker.io/leonjza/gowitness:2.3.6@sha256:7361851c14f0b0f239c15a201677387fd29636183f955dd818972bad4fd4a637
    volumes:
      - ./data:/data
    environment:
      - INTERVAL=86400
    command: gowitness file --disable-db -F -X 1920 -Y 1080 --delay 30 -f urls.txt

urls.txt

https://www.cnn.com
https://www.nbc.com
@jokay
Copy link
Author

jokay commented Feb 17, 2022

@leonjza I've done something similar using an entrypoint.sh script, see here.

@leonjza
Copy link
Member

leonjza commented Feb 17, 2022

Hey, this is a pretty cool idea! I think we have all of the plumbing for this already as well, we just need to add some logic to sleep. I tagged this as an enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants