Skip to content

Instantly share code, notes, and snippets.

View sh0rez's full-sized avatar
🦤
weeeeee

sh0rez sh0rez

🦤
weeeeee
View GitHub Profile
@sh0rez
sh0rez / keybase.md
Created July 20, 2018 19:20
keybase.md

Keybase proof

I hereby claim:

  • I am sh0rez on github.
  • I am shorez (https://keybase.io/shorez) on keybase.
  • I have a public key ASAuu92dSqcTlk3Q_yEPCrWET8plSUcVf_VsmgYQ69mLuQo

To claim this, I am signing this object:

@sh0rez
sh0rez / Dockerfile
Last active July 15, 2019 20:09
Cross-platform golang docker in 2019
FROM golang:1.12-alpine as goenv
RUN go env GOARCH > /goarch && \
go env GOARM > /goarm
FROM --platform=linux/amd64 golang:1.12-alpine as build
COPY --from=goenv /goarch /goarm /
COPY . /app
WORKDIR /app
RUN GOARCH=$(cat /goarch) GOARM=$(cat /goarm) go build .
@sh0rez
sh0rez / Dockerfile
Last active July 16, 2019 07:14
img segmentation violation
FROM golang:1.11.4-stretch as helm
ARG HELM_VER="v2.13.1"
RUN curl -L -o /tmp/helm-$HELM_VER.tgz http://storage.googleapis.com/kubernetes-helm/helm-${HELM_VER}-linux-amd64.tar.gz && \
tar -xz -C /tmp -f /tmp/helm-$HELM_VER.tgz && \
mv /tmp/linux-amd64/helm /usr/bin/helm && \
rm -rf /tmp/linux-amd64 /tmp/helm-$HELM_VER.tgz
FROM golang:1.11.4-stretch as golangci
RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.17.1
@sh0rez
sh0rez / main.jsonnet
Created January 15, 2020 19:36
Creating ConfigMaps with Grafana Tanka
(import "ksonnet-util/kausal.libsonnet") + {
local configMap = $.core.v1.configMap,
local deploy = $.apps.v1.deployment,
local container = $.core.v1.container,
// the data for the configMap
myConfigData:: {
"foo.yml": std.manifestYamlDoc({
foo: "bar",
list: [1,2,3],