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

Auto-update script #11

Open
pniedzwiedzinski opened this issue Dec 13, 2019 · 4 comments
Open

Auto-update script #11

pniedzwiedzinski opened this issue Dec 13, 2019 · 4 comments
Labels
devops enhancement New feature or request good first issue Good for newcomers

Comments

@pniedzwiedzinski
Copy link
Member

The script would automatically deploy the newest release on the RPi. Since it's in the local network the RPi should check the updates by himself. Also, we don't want to update it when someone uses it.
So maybe a cron job at 5 am 😆?

@latachz
Copy link
Member

latachz commented Dec 13, 2019

5 am would be good if school cleaners won't disconnect RPi from electricity. :D

@pniedzwiedzinski
Copy link
Member Author

Maybe anacron would help?

@latachz
Copy link
Member

latachz commented Dec 13, 2019

It's good idea.

@pniedzwiedzinski pniedzwiedzinski added the enhancement New feature or request label Dec 15, 2019
@pniedzwiedzinski
Copy link
Member Author

Okay, so we are deploying a new version once a week max. And in my experience, the rpi is always on, so I think anacron will be unnecessary. Also cron is easier to create since there's an ansible module for that: https://docs.ansible.com/ansible/latest/modules/cron_module.html.

So the final ticket description sounds like this:
Add to ansible playbook task for creating entry in crontab that will run once a week (monday 5am?) and run make production in /home/pi/Desktop/zastepstwa-gui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants