ddclient for loopia in Docker

So i uses loopia.se as my dns provider. And a also have some dns for my home but it always change ip (have dynamic ip home )   So for fixing this i build a docker images that updates my loopia server from the docker images. So i if you are using loopia i but this is the best way… Read more →

Nginx with TLS (Handel certs in Docker)

I use alot of nginx with tls. And almost ll of my docker are public. So how do i solve the tls issues. Well i have done it like so in my docker file i generate ssl cert for nginx in a folder i called /etc/nginx/tls Then when i use my ngix in dev i get the generated certs.  … Read more →

Autodeploy you docker images to AWS (git push = deploy)

So I have a lot of small project and some large. To buil in quality into my code i need to run test in my code. And my code in a prod like env. I always uses docker so my dev env are verly like my prod. One key thing that i do is that when i push code to… Read more →

WordPress multisite to wordpress singelsite (Easy linux)

So i hade to slip up my wordpress multisite to singel sites and it was not that hard when i found out how. First start with setting up the new wordpress and then we migrate over the old wordpress site into the new. 1. Setup the new wordpress site Install and setup the new wordpress site. You can run the… Read more →

Roll you own Docker Registry with nginx (In Docker)

When yor private numbers of docker images grow is time to setup you own private repo. Do have you own docker repo you need 1. the docker registry 2. nginx to handel users 3. tls so that all conenctions are encrypted. So here is what yu do to have you own docker repo running.     Install docker-compsoe and setup… Read more →

Maxscale Sql scaling with mariadb Cluster on Centos in Docker

So scaling sql server has now bean easy with mariadb maxscale. Here i uses it to connect to my mariadb cluster and setup two new servers. One is a loadbalanser and onw is a read/write splitter 1.First prep your mariadb servers with som users for you maxscale CREATE user ‘maxscale’@’%’ identified by ‘maxscaleW222’; GRANT SELECT ON mysql.user TO ‘maxscale’@’%’; GRANT… Read more →

MariaDB cluster with Dynamic Nodes on Centos 7 in Docker

So running sql in docker is a big qestion now. To make some test i have setup two mariadb cluster docker containers. The first one is the mariadb cluster master. This will setup a master mariadb sql node running. The second one is the MariaDB cluster slave. This docker will connect to the master and rsync the database over to… Read more →

Openldap with SQL Backend (Mariadb Centos 7 ) in Docker

We use Ldap for handling our users and I have spent time setting up Openldap and tryng to configur it. But now i have given up my ldap skills and setup my openldap to use a sql backend and then i config my user with SQL that i like more. I have also build i Dockerfile for docker that you… Read more →

Mesos cluster with Marathon running Docker

Hi So for hosting docker in large scale i have tested mesos cluster.  Here is a guide for setting up 3 nodes in mesos running Centos 7. And the adding Marathon to controll the dockers running. The network mesos-master mesos-slave1 mesos-slave2   The node also have on nic connect to the network with internet access.   Security… Read more →

Elasticsearch controller

So we uses alot of easticsearch. And here is i small script to get status and do some simple task with es server. You can get cluster status and cron for index deletions.   import urllib2 # # # Clean up elastich search index by removing old stuff. #The defult ip to es server dhost=’′ #The index name you are… Read more →

%d bloggers like this: