updated weewx-docker repo on github

42 views
Skip to first unread message

Vince Skahan

unread,
May 16, 2020, 9:30:27 PM5/16/20
to weewx-development


Changes from the previous major version in GitHub:
  • support debian 10 and ubuntu 20.04
  • both using v4 dpkg packages for weewx
  • as always in Simulator mode
  • with the tree very much reorganized
To build and run:
  • git clone the repo above
  • cd in there
  • docker-compose build
  • docker-compose up -d

One thing I've found with v4 is that it seems to require an active syslog daemon on the runtime host.  This was a little painful in Docker, as both debian(ish) variants omit this. I added rsyslogd to handle this, with supervisor handling starting the two processes (rsyslog and weewx) in the weewx container.  Works ok for me.

Docker-compose is set to start up a nginx container for each weewx instance, listening on a specified port.   Persistent storage is in /var/tmp to not clutter up things.   See the readme file in the repo above for details.

Coming when I get around to it:
  • add support for centos variants supported by weewx v4 packages
  • add support for building any/all os variants via setup.py rather than using the released packages
This is tested on an Intel NUC so your mileage may vary if you're on a raspi (ARM) or other platform that Docker might support, although if there's an official base image for your os, it should work.



Till Maas

unread,
May 19, 2020, 11:50:16 AM5/19/20
to Vince Skahan, weewx-development
Hi Vince,

On Sat, May 16, 2020 at 06:30:26PM -0700, Vince Skahan wrote:
>
> https://github.com/vinceskahan/weewx-docker

thank you. This is interesting. What is the purpose of this? It seems to
be meant for testing, is this correct?

Does this allow to test drivers/extensions/skins, too?

Thank you
Till

Vince Skahan

unread,
May 19, 2020, 11:57:06 AM5/19/20
to weewx-development
You could use this as a starting point to build your own container to test things, fiddle around, or run your production weewx containerized.  Folks use containers to do all of the above.

Reply all
Reply to author
Forward
0 new messages