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

Use s6-overlay to handle the startup of socat and Home Assistant #2

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

Conversation

shbatm
Copy link

@shbatm shbatm commented Feb 1, 2019

Sharing some changes I made for my personal use. I made some modifications to use s6-overlay to manage socat and HASS startup.

I also modified the Dockerfile to use Alpine Linux's apk add instead of Ubuntu's apt-get install since the new Home Assistant images are based on Alpine. In addition, you can provide --build-arg BUILD_FROM=... in your docker build command to specify the base Home Assistant image to use. For example, I use --build-arg BUILD_FROM=homeassistant/qemuarm-64-homeassistant for my system.

@vladbabii
Copy link
Owner

Thank you for all the work. I'll test these in the next couple of days and merge the pull request (after a quick look I don't expect any issues).

@tynor88
Copy link

tynor88 commented Jun 2, 2019

@vladbabii Any update on this?

/tmp/s6-overlay.tar.gz -L \
"https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${BUILD_ARCH}.tar.gz" && \
tar xfz \
/tmp/s6-overlay.tar.gz -C / && \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the docs for s6-overly suggest using CMD instead: https://github.com/just-containers/s6-overlay#using-cmd

@shbatm
Copy link
Author

shbatm commented Jun 9, 2019

All, I am not planning to continue with this PR. If anyone else would like to make the changes and incorporate the code, please feel free.

I ended up switching to use usbip instead of socat and found that I can pass through my device from the host using the /dev/serial/by-id/ path into HASS.io, therefore, this is no longer needed in my setup.

@tynor88
Copy link

tynor88 commented Jun 10, 2019 via email

@shbatm
Copy link
Author

shbatm commented Jun 10, 2019

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.

4 participants