SciFiFarms / TechnoCore

TechnoCore: an IoT stack powered by Docker Swarm
GNU General Public License v3.0
20 stars 1 forks source link

Get prod working #35

Closed TheHackmeister closed 5 years ago

TheHackmeister commented 5 years ago

Replaced PlatformIO with esphomeyaml.

This is a pretty big change, but has already resulted in a better system. Checkout esphomelib for information on how to use.

Added acme.sh to Portainer

Adds LetsEncrypt via DuckDNS. Checkout the Portainer pull request for more information.

Nearly rewrote README.md and CONTRIBUTING.md.

Check them out to see what's been updated.

Improved Installer

Now sets up duckdns and LetsEncrypt certs. If Docker isn't installed, will use curl .. | sh to install Docker. If the Swarm has not been setup, it will get initialized. There were many commands that polluted the logs. They've been silenced. Removed a good chuck code from the installer that wasn't needed.

Refactors

Moved to create_secret Added "local" to a number of vars. Made clean.sh use yq to reference the docker-compose.yml file to create it's list of objects to remove. Converted run_portainer to a function. This was needed so that it could be ran as a subcommand.

Other changes

Added recommended extensions to VSCode workspace. Added utilities/pull.sh that will get the latest version of images. Moved MQTT ports back to mqtt service. NGINX didn't forward Tasmota MQTT packets correctly.
Added home_assistant_domain secret to allow home_assistant to build the sidebar links.