Skip to content

Instantly share code, notes, and snippets.

@Ottovsky
Ottovsky / Dockerfile
Created May 11, 2020 14:07
gitlab-runner docker image for armv7
FROM golang:1.13.9-alpine3.11 as build
ARG GIT_LFS_VERSION
RUN mkdir -p src/github.com/git-lfs/git-lfs && \
wget -nv -O /tmp/git-lfs.tar.gz https://github.com/git-lfs/git-lfs/archive/v${GIT_LFS_VERSION}.tar.gz && \
tar xf /tmp/git-lfs.tar.gz -C src/github.com/git-lfs/git-lfs --strip-components 1 && \
GOARCH=arm GOOS=linux GOARM_VERSION=7 CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o bin/git-lfs github.com/git-lfs/git-lfs/
@Ottovsky
Ottovsky / infinite-pod-creation-loop
Last active April 3, 2023 09:15
bug.yaml works with cloud providers too, you kubectl apply at your own risk
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: bug
name: bug
spec:
replicas: 1
selector:
matchLabels: