mpp-solar
mpp-solar copied to clipboard
Can't run scripts in Docker : no systemd in Alpine
hi, i was hoping to package these scripts in a docker image, however as the docker default is Alpine linux , there is no systemD. This makes it really hard to run the service..
Please advise
Could you use a CentOS systemd image as the base?
I'm not experienced with docker, but it is on my todo list... (its a long list)
havent tried that, however the alpine linux distri is extremely small ( 5 mb) and the defacto standard in the docker world. i'll try and get back to you
From: John Blance @.> Sent: Thursday, October 14, 2021 10:05:38 PM To: jblance/mpp-solar @.> Cc: audio-catalyst @.>; Author @.> Subject: Re: [jblance/mpp-solar] Can't run scripts in Docker : no systemd in Alpine (#169)
Could you use a CentOS systemd image as the base?
I'm not experienced with docker, but it is on my todo list... (its a long list)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jblance/mpp-solar/issues/169#issuecomment-943687569, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV23RZOPWWOGUEXBELCKNKDUG4ZZFANCNFSM5F6EZ37Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
What does alpine use for services? What setup would you be aiming for?
If you give me an idea of the target and changes you can see, I can try building an image myself and seeing how to make it work...
On Fri, 15 Oct 2021 at 09:22, audio-catalyst @.***> wrote:
havent tried that, however the alpine linux distri is extremely small ( 5 mb) and the defacto standard in the docker world. i'll try and get back to you
From: John Blance @.> Sent: Thursday, October 14, 2021 10:05:38 PM To: jblance/mpp-solar @.> Cc: audio-catalyst @.>; Author @.> Subject: Re: [jblance/mpp-solar] Can't run scripts in Docker : no systemd in Alpine (#169)
Could you use a CentOS systemd image as the base?
I'm not experienced with docker, but it is on my todo list... (its a long list)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/jblance/mpp-solar/issues/169#issuecomment-943687569>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AV23RZOPWWOGUEXBELCKNKDUG4ZZFANCNFSM5F6EZ37Q
. Triage notifications on the go with GitHub Mobile for iOS< https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android< https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/169#issuecomment-943700820, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNVJBQPXG23Y5GJGXKTUG43XXANCNFSM5F6EZ37Q .
it uses rc :
https://www.cyberciti.biz/faq/how-to-enable-and-start-services-on-alpine-linux/
goals would be easy fast deployment, integration and run locally in hass.io, run multiple shielded apps on a single device.
basically all reasons for using docker :)
From: John Blance @.> Sent: Thursday, October 14, 2021 10:27:30 PM To: jblance/mpp-solar @.> Cc: audio-catalyst @.>; Author @.> Subject: Re: [jblance/mpp-solar] Can't run scripts in Docker : no systemd in Alpine (#169)
What does alpine use for services? What setup would you be aiming for?
If you give me an idea of the target and changes you can see, I can try building an image myself and seeing how to make it work...
On Fri, 15 Oct 2021 at 09:22, audio-catalyst @.***> wrote:
havent tried that, however the alpine linux distri is extremely small ( 5 mb) and the defacto standard in the docker world. i'll try and get back to you
From: John Blance @.> Sent: Thursday, October 14, 2021 10:05:38 PM To: jblance/mpp-solar @.> Cc: audio-catalyst @.>; Author @.> Subject: Re: [jblance/mpp-solar] Can't run scripts in Docker : no systemd in Alpine (#169)
Could you use a CentOS systemd image as the base?
I'm not experienced with docker, but it is on my todo list... (its a long list)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/jblance/mpp-solar/issues/169#issuecomment-943687569>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AV23RZOPWWOGUEXBELCKNKDUG4ZZFANCNFSM5F6EZ37Q
. Triage notifications on the go with GitHub Mobile for iOS< https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android< https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jblance/mpp-solar/issues/169#issuecomment-943700820, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJVKNVJBQPXG23Y5GJGXKTUG43XXANCNFSM5F6EZ37Q .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jblance/mpp-solar/issues/169#issuecomment-943704694, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV23RZMO5D7DZOKDTKWVIR3UG44LFANCNFSM5F6EZ37Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Tried, and failed, however as posted in the PI30MAX protocol feed... maybe be due to other issues
docker build documented, removal of systemd dependancy in powermon