Categories
Snippets Uncategorized

nextcloud and Docker and reverse proxies

I have a nextcloud setup like described here (docker-compose, let’s encrypt proxy companion, postgres and nextcloud). And for a while I couldn’t connect any new nextcloud clients to the installation. This fixed it: <?php $CONFIG = array ( # manually added because it’s not picked up from # the env vars once set … it […]

Categories
CICD Development Docker Infrastructure Linux

Databases with dokku

This is part 2 of a couple of blog posts about dokku, a amazing little Heroku clone. In the previous post I showed how to set up Dokku on a DigitalOcean droplet, and deployed a little hello-world container with a single git push. The reason why I wanted dokku thoug was the need of a […]

Categories
CICD Development Docker Infrastructure

Build your own PaaS with Dokku

I was looking for some “play” deployment method for a couple of things I want to try out. Most of them require a database. And it should be cheap, cause I don’t have any load on them and don’t earn any money, so I don’t want to spend basically no money if possible. The usual […]

Categories
Docker Infrastructure Snippets

Logs with docker and logstash

It would be nice to have all container logs from a docker cluster sent to … let’s say, an ELK stack. Right? Right. So we did: on each host in the cluster, we use the GELF log driver to send all logs to a logstash instance the logstash instance clones each request using type “ELK” […]

Categories
Infrastructure

Testing logstash configs with Docker

Now this is really not rocket science, but since I might do this more often, I don’t want to google every time. Prepare your directories ./tmp # THIS IS YOUR WORKING DIRECTORY |- patterns/ # optional | |- patternfile1 # optional | |- patternfile2 # optional |- logs.log |- logstash.conf Prepare your logstash config # […]

Categories
Longer things

My take at a CI infrastructure, Pt.3

All right, back again. Much text here. Let’s talk about … Containerizing The Binaries We are done with the build, now we have a binary. I went for something simple: Who knows best how to put this into a container? The dev guy. Cause he knows what he needs, where he needs it, and where […]

Categories
Longer things

My take at a CI infrastructure, Pt.2

For CI I want the classics – a check in (push) to the repo should be catched by TeamCity, and trigger … a build of the artifact, once running of unit tests containerizing the artifact uploading it to a private Docker registry The question was: How? This post deals with building the code. Building Code […]

Categories
Docker

Docker and proxies

… so I don’t forget. “docker pull” will not use the HTTP_PROXY variable. Why? Because “docker” is just the cli program which tells the daemon what to do. And the daemon probably does not know about the variable if just set in the terminal. So, what to do to make docker use it described pretty […]

Categories
Uncategorized

Fedora, docker and self-signed SSL certs

I am behind a company firewall with a man-in-the-middle SSL certificate for secure connections. Can’t have viruses over SSL, can we? But apps which actually verify SSL connections (which is all of the apps using standard SSL/TLS/whatnot libs) do not like this. And rightfully so. But then we’re left with the following problem: $ docker […]