Skip to content

Instantly share code, notes, and snippets.

View Hermsi1337's full-sized avatar
🤡
I am the ding-dang-diddly danger!

Dennis Hermsmeier Hermsi1337

🤡
I am the ding-dang-diddly danger!
View GitHub Profile
@Hermsi1337
Hermsi1337 / docker-rootful.yaml
Last active May 3, 2023 09:48
Run docker-rootful on Lima
# Example to use Docker instead of containerd & nerdctl
# $ limactl start ./docker.yaml
# $ limactl shell docker docker run -it -v $HOME:$HOME --rm alpine
# To run `docker` on the host (assumes docker-cli is installed):
# $ export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock')
# $ docker ...
# This example requires Lima v0.8.0 or later
images:
@Hermsi1337
Hermsi1337 / hermsi-docker-gc.sh
Created December 7, 2020 16:19
Docker Cleanup Script for Gitlab-Runners
#!/usr/bin/env bash
if [[ -n "${DEBUG}" ]]; then
set -x
fi
# Run container removal
CONTAINER_NAMES_TO_EXCLUDE=()
CONTAINER_NAMES_TO_EXCLUDE+=("gitlab-runner")
@Hermsi1337
Hermsi1337 / disable-auth.sh
Created April 27, 2020 08:44
Disable basic-auth via init-container when deploying elasticsearch via the cloud-on-k8s operator
#!/usr/bin/env bash
set -x
set -euo pipefail
# download yq-binary and only start as soon as the binary is present
until curl \
-L -o yq \
https://github.com/mikefarah/yq/releases/download/3.1.2/yq_linux_amd64 \
; do sleep 1 ; done