#docker

Sunday project: Huginn, Docker & Ansible

Some time ago I set up a #Twitter account posting #WWII "as it happened" events to #Socialhome (see here). This was accomplished using Zapier that reads the tweets and then POST's to the Socialhome API.

All that worked great and #Zapier is really nice. Except it's limited to 100 events per month on the free tier and this seems wasn't enough for the WWII tweets coming in. Zapier paid plans are from $20/mo which is way too much just to replicate some tweets.

At first I thought about making my own app to do all this but then I remembered running into Huginn, which I have been wanting to install anyway. It's basically a self-hosted #IFTT or Zapier, but allowing for even more complex stuff like unlimited chaining of events.

Docker + Ansible

I'm pretty new to #Docker but eventually I want to dockerize more of my apps. So of course I was happy to see #Huginn has a Docker image, allowing me to not have to muck about with any more #RoR apps. I use #Ansible for pretty much everything, so it made sense to build a playbook to deploy the app in a Docker container.

Luckily (or thanks to the fantastic Ansible team that is!), maintaining Docker containers with Ansible is as easy as doing anything else with it.

I chose to keep the web server out of the containers to use my standard #LetsEncrypt role for getting SSL on top. This made the role very simple, having only to 1) fetch SSL cert, 2) set up Apache to proxy and 3) push up a container.

The docker_container Ansible module call is basically just this:

 ---
 - docker_container:
   name: huginn
   image: huginn/huginn
   volumes:
     - "{{ huginn_db_volume_mount }}:/var/lib/mysql"
   env:
     APP_SECRET_TOKEN: "{{ huginn_secret }}"
     DOMAIN: "{{ huginn_domain }}"
     FORCE_SSL: "{{ huginn_https}}"
     INVITATION_CODE: "{{ huginn_invitation_code }}"
     MAIL_FROM_ADDRESS: "{{ huginn_mail_from }}"
     RAILS_ENV: production
     SMTP_DOMAIN: "{{ huginn_smtp_domain }}"
     SMTP_PASSWORD: "{{ huginn_smtp_password }}"
     SMTP_PORT: "{{ huginn_smtp_port }}"
     SMTP_SERVER: "{{ huginn_smtp_server }}"
     SMTP_USER_NAME: "{{ huginn_smtp_username }}"
     TWITTER_OAUTH_KEY: "{{ huginn_twitter_key }}"
     TWITTER_OAUTH_SECRET: "{{ huginn_twitter_secret }}"
   register: _docker_huginn

The container IP is then picked up from _docker_huginn by Apache to do the proxying.

The playbook itself, without any extra customization is pretty much here:

 ---
 - hosts: myhost
   become: yes
   become_user: root

   vars:
     letsencrypt_email: youremail@example.com
     huginn_domain: huginn.example.com
     huginn_invitation_code: changeme!
     huginn_secret: changeme!

   roles:
     - huginn

The result is the ansible-huginn role. Tested on #Ubuntu 14.04. Right now a bit limited in terms of configuration that can be passed in. Will expand as necessary.

Fun Huginn stuff

Some initial things I want to do is to use the chaining to make the tweet replicating not embed the tweet, but instead rip out the text + media and create a normal post instead. That should make for cleaner streams with less Twitter JS firing off.

Any tips on fun stuff to do with Huginn?

huginn/huginn
huginn - Create agents that monitor and act on your behalf. Your agents are standing by!

Jason Robinson

Hybrid datacenter is Docker’s latest open source goal http://techgenix.com/hybrid-datacenter-docker/ #docker itself is "hybrid" -- now partly proprietary

Hybrid datacenter is Docker’s latest open source goal
Docker’s latest quest is to power every enterprise’s hybrid datacenter. Find out how it plans to gain dominance in this coveted market.

Dr. Roy Schestowitz (罗伊)

So I've been happily using #OpenVPN inside of #Docker for all my encryption needs, and it's been great. Until now. All of a sudden, at my new client, I can use my VPN-connected phone for some sites, but not others.

I am able to connect to my #VPN via my client's guest Wi-Fi network with no troubles. It uses it's own PKI so I know there's no funny business going on with a corrupted certificate, MITM, or anything like that. When I hit a site like www.whatismyip.com, it correctly displays my VPN's external IP address. So far, so good.

But when I try to go to one of my hosted sites (Diaspora, Searx, and the like), I get a message about how Safari cannot connect to the server. Switch of Wi-Fi and use LTE to make the connection (with the VPN, of course), and it works just fine.

So what gives? My initial thought was that somehow I was leaking DNS queries onto the local network, but when I run a DNS app it correctly resolves the IP addresses to their proper values, and my VPN log on my client indicates that it's being told by the server which DNS to use, so that seems like a dead end.

I also wondered if there was a chance that a proxy server was set up on the DHCP, but it doesn't seem to be the case either (since I'm showing my VPN's external IP, remember?).

So I have know idea how I can get into a situation where my VPN works fine, but some HTTP requests don't.

I'm very confused.

diaspora* social network

Brad Koehn

GNU/Linux, #Docker Gain in Rented Space http://www.tuxmachines.org/node/104998 #gnu #linux

Linux

#Linux, #Docker Gain in Public Server Deployments https://www.enterprisetech.com/2017/09/20/linux-docker-gain-public-cloud-deployments/

Dr. Roy Schestowitz (罗伊)

Functions-as-a-Service coming to #PiCluster 2.2 https://www.linux-toys.com/archives/1460 #containers #docker #faas #cluster

Dr. Roy Schestowitz (罗伊)

Virtualisierung: VMware setzt auf Openstack und Kubernetes - Golem.de
<https: news="" virtualisierung-vmware-setzt-auf-openstack-und-kubernetes-1709-130048.html="" www.golem.de="">
#VMware #CloudComputing #Docker #Kubernetes #Openstack #Orchestrierung #Server-Applikationen #Unternehmenssoftware #Virtualisierung #WebService</https:>

Golem (inoffiziell)

heise-Angebot: iX kompakt: Virtualisierung und Container
<https: ix="" ix-kompakt-virtualisierung-und-container-3830357.html="" meldung="" www.heise.de="">
#Containerisierung #Docker #FreeBSD #KVM #Kubernetes #LinuxundOpenSource #Microsoft #MicrosoftHyper-V #OpenSource #OpenBSD #QEMU #VMware #VirtualBox #Virtualisierung</https:>

Home

heise online (inoffiziell)

#KDE and #GNOME: Developing #KDEPIM with #Docker, #GObject Introspection, GNOME 3.26 Days Away http://www.tuxmachines.org/node/104632 #gnu #linux

Linux

heise-Angebot: Jetzt noch Frühbuchertickets für Continuous Lifecycle und ContainerConf sichern
<https: developer="" jetzt-noch-fruehbuchertickets-fuer-continuous-lifecycle-und-containerconf-sichern-3823769.html="" meldung="" www.heise.de="">
#Container #ContainerConf #Containerisierung #ContinuousDelivery #ContinuousLifecycle #DevOps #Docker #Kubernetes</https:>

Home

heise online (inoffiziell)

How did it take this long to discover the .dockignore file? My builds are twice as fast. #docker

Brad Koehn

Introducing #PiCluster 2.1 https://www.linux-toys.com/archives/1432 #docker #freesw

Dr. Roy Schestowitz (罗伊)

Pivotal Container Service: VMware und Pivotal zähmen Kubernetes
<https: ix="" meldung="" pivotal-container-service-vmware-und-pivotal-zaehmen-kubernetes-3818761.html="" www.heise.de="">
#CloudComputing #Containerisierung #Docker #Google #Kubernetes #Pivotal #VMware #VMworld</https:>

heise online (inoffiziell)

Hey everyone, I’m #newhere. I’m interested in #arduino, #bmw-r1200rt, #computers, #docker, #linux, #motorcycles, #movies, #nodemcu, #piaggiomp3, #python, #raspberry-pi-3, #raspberrypi, #scifi, and #ubuntu.

gruntfitik@joindiaspora.com

heise-Angebot: Frühbucherrabatt sichern: Heise Cloud-Konferenz 2017
<https: fruehbucherrabatt-sichern-heise-cloud-konferenz-2017-3809976.html="" meldung="" newsticker="" www.heise.de="">
#AmazonWebServices #CloudComputing #Containerisierung #Docker #GoogleCloud #IaaS #MicrosoftAzure #OpenSource #PlatformasaService #openstack</https:>

heise online (inoffiziell)

Bon, @{Augier; augierle42e@diaspora-fr.org}, pour le week-end prochain, j'aurais du Ansible et du Docker à fixer.

  • Ansible pour l'installation de toute la stack serveur classique.
  • Docker pour diaspora* :
    • J'ai déjà une image quasi fonctionnel
    • Reste à la rendre utilisable facilement
  • Docker pour Mastodon :
    • Regarder son fonctionnement
    • L'utiliser pour diaspodon.fr

On pourra enchainer sur une grosse migration des vieux serveurs faibles que je me traine vers mon ancien Kimsufi !

On va se marrer !

#diaspora #mastodon #docker #kimsufi #hébergement

dada

#Docker Pivots to Proprietary http://www.tuxmachines.org/node/104030 #container #server

Linux

Server: #NASA, #Kubernetes at #GitHub, and #Docker in #Mainframes http://www.tuxmachines.org/node/104014

Linux

Services/Servers/Containers News http://www.tuxmachines.org/node/103945 #docker #container #gnu #linux

Linux