This file contains 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 setuptools import Command | |
import shlex | |
import subprocess | |
import os | |
WHEELHOUSE = "wheelhouse" | |
class Package(Command): | |
"""Package Code and Dependencies into wheelhouse""" |
This file contains 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 setuptools import find_packages, setup | |
from package import Package | |
setup( | |
author="Ami Mahloof", | |
author_email="[email protected]", | |
packages=find_packages(), | |
include_package_data=True, | |
cmdclass={ | |
"package": Package |
This file contains 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
--- | |
name: "MyProject" | |
description: "Some Django App" | |
manifest: | |
graft: "location/to/Django/staticfiles" | |
prune: "some-un-needed folder" |
This file contains 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
--- | |
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
namespace: services-stg | |
name: deploy-stg | |
rules: | |
- apiGroups: ["", "extensions", "apps"] # "" indicates the core API group | |
resources: ["*"] | |
verbs: ["*"] |
This file contains 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
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: tiller-manager | |
namespace: stg | |
rules: | |
- apiGroups: ["", "extensions", "apps"] | |
resources: ["*"] | |
verbs: ["*"] | |
This file contains 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 | |
set -o pipefail | |
# Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
echo "usage: $0 <service_account_name> <namespace>" | |
exit 1 | |
fi |
This file contains 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
#!/usr/bin/env ruby | |
require 'json' | |
es_cluster = 'http://localhost:9200' | |
master_node = "Howard the Duck" # sey your master node name here | |
unassigned_shards_info = `curl -s -XGET #{es_cluster}/_cat/shards | grep UNASSIGNED `.split("\n") | |
shard_indexes = [] |
NewerOlder