Comments (9)
scyto I can't see an issues section on your own fork to ask this question. How likely do think it is you'll continue to support the HS4 fork?
Is it possible to update the HS4 application within the container sing some kind of docker exec command?
from docker-homeseer.
Not sure why you cant file a bug on the fork, will look.
I just reminded myself of the code, the version of HS used is set by a default env var thanks to who ever converted to S6 I think?
When you do docker run command just use the version you want with an env var parameter on the command line to override the default version.
I can update the image default later this week and re-push to docker hub.
I hadn’t progressed the fork as I didn’t know any one was using my image, lol. :-)
from docker-homeseer.
@Fellhahn ok github and dockerhub updated, build logs look good but i haven't had chance to spin it up and test, can you give it a quick run?
Also enabled issues on my fork - no idea why it was disabled, maybe its because it is a fork.
This reminds me i need to see what architectures S6 works on and see if i can do multiplatform build.... depends if HS has architecture dependent binaries in it....
Once HS4 goes GA I will add vars to choose HS3 or HS4 and propose the changes as upstream change.
from docker-homeseer.
Awesome, thanks for such a fast response.
Stopped the HS4 container, removed, pulled the image again and re-ran 'docker-compose up'. Confirmed it downloaded HS 4.0.7.0 and starts without any noticeable issues.
A note for others, set your restart policy to "unless-stopped" instead of "always". Otherwise the container seems to restart when you perform the shutdown from within the HS UI?
And yes that version ENV variable works a treat. Added:
- HOMESEER_VERSION=4_0_6_0
Under the environment: section of the compose file, re-upped and the container started with version 4.0.6.0.
Seeing how it downloads the homeseer installer at first run, adding a HS3/HS4 ENV veriable seems a nice clean solution. Makes it possible for users to pin to a certain build version as well.
While I'm yet to actually move my z-wave interface over, I'm pretty darn happy with this so far, so big thanks.
from docker-homeseer.
You are welcome, I am still running an ISY-994i as my primary controller because I have mix of Insteon and zwave. I have it on my list to seriously take another look at HS. I stopped a few weeks ago because of bugs affecting some plugins. I am hoping the new version fixed them.
Since I last posted I finally got around to looking at compose and stack files, docker run in a script is just as effective, lol. Been messing with portainer and swarm mode. Very interesting.
from docker-homeseer.
Hey, I have a question...
Does HS gracefully shutdown from a docker stop
or a docker restart
?
from docker-homeseer.
from docker-homeseer.
Is it possible to use a systemd service inside the container and if so, would docker stop
execute systemctl stop HS4
?
[Unit]
Description=HomeSeer HS4 Home Automation
Documentation=https://homeseer.com/support-home/
After=network-online.target remote-fs.target time-sync.target
Before=multi-user.target
[Service]
WorkingDirectory=/usr/local/HomeSeer
ExecStart=/usr/bin/mono HSConsole.exe --log
SyslogIdentifier=HomeSeer HS4
StandardOutput=null
Restart=on-failure
RestartSec=30
KillMode=none
TimeoutStopSec=300
ExecStop=/usr/local/HomeSeer/hsstop.sh
[Install]
WantedBy=multi-user.target
from docker-homeseer.
It looks like docker-homeseer4/rootfs/etc/services.d/homeseer/finish
runs
#!/usr/bin/with-contenv sh
[ "$TERMINATE_ON_ERROR" = "1" ] && s6-svscanctl -t /var/run/s6/services
Could this somehow execute /usr/local/HomeSeer/hsstop.sh
?
from docker-homeseer.
Related Issues (17)
- Please add avahi-daemon to the base container. HOT 4
- running mono from root supposedly broke a plugin HOT 1
- Could you create a wiki page? If you do i will document all my tested plugins on it. HOT 1
- random startup error about compiling startup.vb and scheduler.dll ? HOT 1
- Wiki page is read only? HOT 1
- Sonos Error - SQLite HOT 2
- Plugins Sensitive to where mono / hsconsole.exe is run from.
- username and pasword HOT 2
- Scheduler.dll HOT 1
- Can you update the HomeSeer version to 3.0.0.500?
- 24 Hour Clock HOT 2
- docker: Error response from daemon
- Update to latest version HOT 1
- bumping version/image on the hub HOT 2
- Shutdown HS3 - portainer
- HS4 plans? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-homeseer.