This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Template for the Elasticsearch and Kibana portion of an ELK stack | |
elasticsearch: | |
image: elasticsearch | |
# Have to overwrite command because elasticsearch:2 binds to 127.0.0.1 by default | |
command: ["elasticsearch", "-Des.network.host=0.0.0.0"] | |
ports: | |
- "9200:9200" | |
kibana: | |
image: kibana | |
links: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db: | |
image: mongo | |
command: mongod --smallfiles | |
rocketchat: | |
image: rocketchat/rocket.chat | |
links: | |
- db | |
ports: | |
- 80:3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Usage: | |
python git-branch-cleanup.py <repo_name> | |
Run this script from the /tmp directory. It will clone the | |
repo locally and then proceed to delete branches. | |
""" | |
import os, errno, logging, sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache License | |
Version 2.0, January 2004 | |
http://www.apache.org/licenses/ | |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
1. Definitions. | |
"License" shall mean the terms and conditions for use, reproduction, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.13-alpine as builder | |
WORKDIR /my-proj | |
ADD . . | |
RUN CGO_ENABLED=0 go install ./cmd/my-cmd/... | |
FROM alpine:latest | |
COPY --from=builder /go/bin/my-cmd /usr/local/bin/my-cmd | |
ENTRYPOINT ["/usr/local/bin/my-cmd"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8.16.2-jessie as production | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# Add npm binaries to path | |
ENV PATH node_modules/.bin:$PATH | |
# Install yarn | |
RUN curl --compressed -o- -sSL https://yarnpkg.com/install.sh | bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
NAMESPACE="$1" | |
echo "Checking if we can purge namespace $NAMESPACE" | |
OUTPUT=$(kubectl -n "$NAMESPACE" get all 2>&1) | |
echo "$OUTPUT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
kind create cluster --image kindest/node:v1.18.6 | |
NAMESPACE="kube-system" | |
helm init --wait | |
kubectl --namespace $NAMESPACE create serviceaccount tiller |