docker on Life and Shell https://lifeandshell.com/tags/docker/ Recent content in docker on Life and Shell Hugo -- gohugo.io en-us Mattias Hemmingssion mattias@lifeandshell.com Sun, 13 Apr 2025 09:32:36 +0000 Wazuh Digest any source! https://lifeandshell.com/posts/wazuh-digest-any-source/ Sun, 13 Apr 2025 09:32:36 +0000 https://lifeandshell.com/posts/wazuh-digest-any-source/ How I Built a Custom Wazuh Log Ingest Pipeline (And Ditched the Wodle) If you’ve ever tried to push custom logs into Wazuh, you’ve probably stumbled across something called a Wodle. Wazuh uses these built-in scripts to collect and parse data—especially useful for integrations like AWS. So… Wodle for AWS? Sure, Wodle can collect AWS logs. But when I tried using it for my AWS environment, things didn’t exactly go as planned. Wazuh On Kubernetes using Helm https://lifeandshell.com/posts/wazuh-on-kubernetes-using-helm/ Sat, 12 Apr 2025 21:50:16 +0000 https://lifeandshell.com/posts/wazuh-on-kubernetes-using-helm/ From OSSEC to Wazuh: My Journey and Kubernetes Setup I started a long time ago using OSSEC, and eventually transitioned over to Wazuh—back when it still relied on Elasticsearch for storage and search. Recently, when I returned to Wazuh for a new project, I was surprised to find that there was no simple way to deploy Wazuh into a local Kubernetes cluster for testing. So, I decided to revive and modernize an old Helm chart I had built a while back. Vault EKS / AWS to pod The complete guide https://lifeandshell.com/posts/vault-eks-aws-to-pod-the-complete-guide/ Thu, 29 Oct 2020 09:17:42 +0000 https://lifeandshell.com/posts/vault-eks-aws-to-pod-the-complete-guide/ I have bean working some time with vault and to deploy it to our EKS cluster and then to get the secrets into our pods. After many hours of searching i have found out that using kube-vault and vault-env. This gude uses tarraform to setup the resources you need in AWS. Then deploy the kubevault with ui into to cluster that will use a s3 bucket and backend and autoseal it self during boot Running Counter-strike 1.6 and CSGO in kubernetes ! https://lifeandshell.com/posts/running-counter-strike-1-6-and-csgo-in-kubernetes/ Wed, 29 Apr 2020 14:09:45 +0000 https://lifeandshell.com/posts/running-counter-strike-1-6-and-csgo-in-kubernetes/ Yee so it was a long time ago when I spend days playing counter strike 1.6. And now when i got some more power full servers and some time I was thinking of setting up a some counter-strike server for me and some friends so we can play. I have a nice kubernetes cluster in my garage and a run all my stuff inside kubernetes so it was natural to make them into a kubernetes deploy. Alexa and Jenkins (Docker) https://lifeandshell.com/posts/alexa-jenkins-docker/ Sat, 26 Nov 2016 22:05:28 +0000 https://lifeandshell.com/posts/alexa-jenkins-docker/ So I have an Alexa echo dot at home. Use it to control stuff but I wanted it to do more like release and deploy the stuff I build. This is how you can integrate Alexa voice service with Jenkins. First setup the server For receiving commands from Alexa and sending them to Jenkins we need a server and some code. First start with the server i use docker and a docker-compose to set it up. ddclient for loopia in Docker https://lifeandshell.com/posts/ddclient-loopia-docker/ Mon, 27 Jun 2016 20:43:23 +0000 https://lifeandshell.com/posts/ddclient-loopia-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 of updating you dns records   Run with docker run -e " Autodeploy you docker images to AWS (git push = deploy) https://lifeandshell.com/posts/autodeploy-docker-images-aws-git-push-deploy/ Thu, 26 May 2016 12:56:19 +0000 https://lifeandshell.com/posts/autodeploy-docker-images-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 my master branch i do a release do server. This is so that i can verify that everything is working and i can run test on it. Roll you own Docker Registry with nginx (In Docker) https://lifeandshell.com/posts/roll-you-own-docker-registry-with-nginx-in-docker/ Sat, 19 Mar 2016 23:25:36 +0000 https://lifeandshell.com/posts/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 the followin docker-compose file storage: image: busybox volumes: - /backup/docker/registry:/var/lib/docker/registry cache: image: redis registry: image: registry ports: - 127. Maxscale Sql scaling with mariadb Cluster on Centos in Docker https://lifeandshell.com/posts/maxscale-sql-scaling-with-mariadb-cluster-in-docker/ Thu, 28 Jan 2016 22:31:46 +0000 https://lifeandshell.com/posts/maxscale-sql-scaling-with-mariadb-cluster-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 SELECT ON mysql.db TO 'maxscale'@'%'; GRANT SHOW DATABASES ON *.* TO 'maxscale'@'%';   MariaDB cluster with Dynamic Nodes on Centos 7 in Docker https://lifeandshell.com/posts/mariadb-cluster-with-dynamic-nodes-in-docker/ Wed, 27 Jan 2016 13:45:55 +0000 https://lifeandshell.com/posts/mariadb-cluster-with-dynamic-nodes-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 the slave. Then en database is rsynced over it will start the sql and can process sql data. Openldap with SQL Backend (Mariadb Centos 7 ) in Docker https://lifeandshell.com/posts/openldap-with-sql-backend-mariadb/ Thu, 21 Jan 2016 15:59:14 +0000 https://lifeandshell.com/posts/openldap-with-sql-backend-mariadb/ 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 can use.     So what you need is one sql databserver to hold that database, One odbc connection from the ldap server to that sql server. Mesos cluster with Marathon running Docker https://lifeandshell.com/posts/mesos-cluster-with-marathon-running-docker/ Fri, 11 Dec 2015 21:47:19 +0000 https://lifeandshell.com/posts/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 172.0.0.10 mesos-slave1 172.0.0.11 mesos-slave2 172.0.0.12   The node also have on nic connect to the network with internet access.   Security For this guide stop iptables and turn selinux off setenforce 0 systemect stop firewalld