Skip to content

Add Docker Support #3

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add Docker Support #3

wants to merge 3 commits into from

Conversation

RossIV
Copy link

@RossIV RossIV commented Dec 30, 2023

This PR adds the ability to run this (awesome!) tool in Docker, which saves the effort of having to manually install PHP, php-snmp, net-snmp-utils, and your web server daemon of choice.

The most notable change is the re-location of the PDU configuration from index.php into a standalone config.php file. Since index.php gets copied into the image at build time, with the configuration values inside that file it's not possible to make any changes without rebuilding the image. Having config.php mounted as a volume (via docker compose) allows it to be updated as needed while index.php remains static in the image. I've done my best to update README.md accordingly for this.

@disisto
Copy link
Owner

disisto commented Jan 1, 2024

Hello @RossIV,

Happy New Year and many thanks for your pull request. Awesome work! 👏

Based on feedback #2 here, I've already made significant changes to the code (e.g. moving out credentials part and much more) which will be released in Q1 this year. Docker support has already been considered, as the "one file for all" concept doesn't seem to appeal to everyone.

If you have any other suggestions for improvements that you would like to see in version 2, please let me know.

Keep up the good work!

Thank you,
disisto

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