Crossfit Open WOD 16.1

Update Mein Score ist 133, d.h. 5 Runden + 15ft Overhead Lunges.

Das Crossfit Open WOD 16.1 ist angekündigt.

16.1 – 20min AMRAP

  • 25-ft. overhead walking lunge (43kg / 29kg)
  • 8 burpees
  • 25-ft. overhead walking lunge
  • 8 chest-to-bar pull-ups

Ich werde das Workout am Montag abend machen. Ich habe auch nicht vor, es mehr als 1x zu machen. Mein Ziel sind 4 Runden, das wäre ein Score von 104 – mal gucken, wie es läuft und wie ich dann morgen aus dem Bett komme.

Ach so, und am gestrigen Sonntag ist dann noch das hier passiert:

#whynot #crossfitopen #crossfit

Running a local Docker registry

When you’re using Docker extensively, you sometimes need to run your own registry in order to push images around in your local network – or even on your local machine. For that you need a registry where you can push and pull images. With Docker itself, it’s easy to set it up. Here is a small docker-compose.yml which runs a registry and a simple frontend:

  image: registry:2
  - data:/var/lib/registry
  - 5000:5000
  image: konradkleine/docker-registry-frontend:v2
  - registry
  - 8080:80

The registry is persisting its data into the directory data, so nothing is lost if you throw away and recreate the container.

Save the file as docker-compose.yml and start it via docker-compose up in the same directory. After that you can open http://localhost:8080 and you see a basic frontend (taken from kwk/docker-registry-frontend).

Docker Registry with Frontend

Now when you push an image to your registry with the following command it becomes visible on the frontend:

docker pull alpine && docker tag alpine localhost:5000/alpine
docker push localhost:5000/alpine

Refresh the registry frontend and you’ll see the new image is available. You can now pull it with the following command:

docker pull localhost:5000/alpine

Have fun!

Minimal Docker image for DokuWiki

Yesterday I upgraded my Docker setup from v1.5 to v.10. I had to do a full apt-get dist-upgrade as well to bring my system up to Debian Jessie. On the way I discovered that my backup script wasn’t backing up anything from my personal wiki running with DokuWiki. Another case of Schroedingers Backup: The backup is only there, if it can be successfully restored. ☹ Anyway, I had only a few snippets from my daily development work and some links to software I tend to use on the wiki, so not that much of a loss. And because I had to set up my wiki again, I decided to build a minimal container instead of re-using the offical php images.

I am already using Alpine Linux for a couple of images at work and I am switching everything using busybox to it too. So it was a natural decision to build the minimal wiki container with Alpine as well. Modifying the Dockerfile was easy, and I also added some ONBUILD instructions to let users add their own users, access control list and DokuWiki configuration. I probably will provide an image to just run a wiki instance and one with the ONBUILD instructions to extend from.

Here’s the README:

Create the files local.php, acl.auth.php and users.auth.php according to DokuWiki documentation. They will be added when you build your own image. Create a Dockerfile in the same directory as your configuration files:

FROM moritanosuke/dokuwiki-docker

Build the Dockerfile:

docker build -t yourname/dokuwiki .

Start your wiki:

docker run -d --name some-dokuwiki -p 8080:80 yourname/dokuwiki

Now you can access your dokuwiki at http://localhost:8080

You can find the image dokuwiki-docker on Docker Hub and on github. Here’s the current image size: