Jump to content

balloob

Community Developer
  • Posts

    33
  • Joined

  • Last visited

Posts posted by balloob

  1. Sorry if this is not the right thread. I am updating my Unraid templates to point the Home Assistant templates to a new repo (migrated from balloob/home-assistant to homeassistant/home-assistant).

     

    As part of the process I am cleaning up how Docker generates my images and I want to migrate from 2 repositories (home-assistant, home-assistant-dev) to 1 repository with two tags (latest, dev). However, I can't seem to find a way to specify a tag in a template. Is this possible?

  2. If I run a bash shell inside the container and run 'mosquitto -c /config/mosquitto.conf' I get the following:

     

    root@0058acdb3406:/config# mosquitto -c mosquitto.conf
    1442777398: Error: Unable to open log file /config/log/mosquitto.log for writing.
    1442777398: mosquitto version 1.4.3 (build date Wed, 19 Aug 2015 12:10:03 +0100) starting
    1442777398: Config loaded from mosquitto.conf.
    1442777398: Error: Unable to open pwfile "/config/passwords.mqtt".
    1442777398: Error opening password file "/config/passwords.mqtt".
    

  3. I've been having some problems after the MQTT rewrite. I keep getting connection refused when I try to connect using mosquitto_sub on another machine.

     

    If I overwrite the entry point of the docker with the command 'mosquitto', it runs just fine but passwords are not validated and everyone just has access.

     

    Running the docker from the command line with TTY attached, I see these errors:

     

    root@Hydra:/mnt/cache/app_config/mqtt# docker run -t -i --net="bridge" -e TZ="America/Los_Angeles" -p 1883:1883/tcp -v "/mnt/cache/app_config/mqtt/":"/config":rw spants/mqtt
    *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
    *** Running /etc/my_init.d/10_add_user_abc.sh...
    /etc/my_init.d/10_add_user_abc.sh: line 3: [: : integer expression expected
    /etc/my_init.d/10_add_user_abc.sh: line 4: [: : integer expression expected
    
    -----------------------------------
    GID/UID
    -----------------------------------
    User uid:    911
    User gid:    8378
    -----------------------------------
    
    *** Running /etc/my_init.d/60_update_apps.sh...
    (Reading database ... 13828 files and directories currently installed.)
    Preparing to unpack .../mosquitto_1.4.4-0mosquitto1_amd64.deb ...
    invoke-rc.d: policy-rc.d denied execution of stop.
    Unpacking mosquitto (1.4.4-0mosquitto1) over (1.4.3-0mosquitto1) ...
    Processing triggers for ureadahead (0.100.0-16) ...
    Setting up mosquitto (1.4.4-0mosquitto1) ...
    invoke-rc.d: policy-rc.d denied execution of start.
    *** Running /etc/my_init.d/80_set_config.sh...
    *** Running /etc/my_init.d/90_new_user.sh...
    /etc/my_init.d/90_new_user.sh: line 3: [: : integer expression expected
    /etc/my_init.d/90_new_user.sh: line 4: [: : integer expression expected
    
    -----------------------------------
    GID/UID
    -----------------------------------
    User uid:    911
    User gid:    8378
    -----------------------------------
    
    *** Running /etc/rc.local...
    *** Booting runit daemon...
    *** Runit started as PID 139
    Error: Unable to open config file /config/mosquitto.conf
    
    Error found at /config/mosquitto.conf:32764.
    Error: Unable to open configuration file.
    Sep 20 12:24:38 b38c5292ebd4 syslog-ng[145]: syslog-ng starting up; version='3.5.3'
    Error: Unable to open config file /config/mosquitto.conf
    
    Error found at /config/mosquitto.conf:32764.
    Error: Unable to open configuration file.
    Error: Unable to open config file /config/mosquitto.conf
    
    Error found at /config/mosquitto.conf:32767.
    Error: Unable to open configuration file.
    Error: Unable to open config file /config/mosquitto.conf
    

  4. I've created a template for creating Home Assistant containers in DockerMan. Add the following url to your template repositories at the bottom of the Docker tab in your Unraid configuration: https://github.com/balloob/unraid-docker-templates

     

    Home Assistant is a home automation platform running on Python 3. The goal of Home Assistant is to be able to track and control all devices at home and offer a platform for automating control.

    • Like 2
  5. After some more playing around I don't think the language specific containers from Docker are the way to go. That is more focussed on people that quickly want to distribute their own project.

     

    Wouldn't it make sense if we take a base image, put the unRAID fixes in that are now put in each Dockerfile (changing uid/gid for user nobodoy) and publish that on the docker registry? That way all could depend on just the unraid baseimage and the maintainer of the unraid baseimage can decide when he wants to upgrade to a newer phusion version (for example) so all are in sync.

  6. Is using phusion-baseimage part of the unRAID best practice guides ? I know that the people from Docker are not so pleased with the fact that phusion put cron and sshd in their baseimage. On top of that, Docker released Language Stacks today, images focussed on running applications written in a specific language.

     

    As these will be part of the best practice guides by Docker, wouldn't it make sense to base our images on those ?

×
×
  • Create New...