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

Added crontab support and switched to MariaDB #44

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

KG7QIN
Copy link

@KG7QIN KG7QIN commented Dec 13, 2018

A few changes were made:

  • Switched from MySQL to MariaDB
  • Added support for crontab with the ability to change the crontab file and restart the container for the changes to take effect.

I also changed how this is built. By default now it uses docker-compose to build the container. This was done to support the changes that I made and allow the ability to update the contab file in the config directory and restart the container for the changes to take effect.

An entrypoint.sh file was added. This file will wait 90 seconds for MariaDB to be ready and either continue with initialization or quit. Once MariaDB is ready, the script will then start the cron service then execute the default entry point of docker-php-entrypoint with the argument of apache2-foreground, which starts Apache and PHP.

Additionally the database is now persistent across container rebuilds. Data from MariaDB is now kept in db_data/mysql.

SOlivas and others added 6 commits December 12, 2018 21:45
MariaDB and crontab support added
Minor fix - work around Debian 9 "bug" with cron and Docker.
@leleobhz
Copy link
Contributor

It's possible to keep phpIpam image the way it was and use a docker-friendly scheduler service. I've suggested to use cron from Ofelia at #77 (comment)

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.

None yet

3 participants