Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Created December 24, 2015 19:07
Show Gist options
  • Save andyshinn/3ae01fa13cb64c9d36e7 to your computer and use it in GitHub Desktop.
Save andyshinn/3ae01fa13cb64c9d36e7 to your computer and use it in GitHub Desktop.
BusyBox cron container example
FROM gliderlabs/alpine:3.3
COPY myawesomescript /bin/myawesomescript
COPY root /var/spool/cron/crontabs/root
RUN chmod +x /bin/myawesomescript
CMD crond -l 2 -f
#!/bin/sh
echo "Hi Andy" >> /dev/stdout
* * * * * /bin/myawesomescript
@eduncan911
Copy link

eduncan911 commented Dec 6, 2022

Whoa... You mean this thread, my comment, spawned a patch upstream to BusyBox?! Niiiiiiice. Thanks @jsarenik !

@jsarenik
Copy link

jsarenik commented Dec 6, 2022

@eduncan911 My pleasure :)

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