View foo.yaml
apiVersion: v1
kind: Pod
metadata:
name: test-ebs
spec:
containers:
- image: gcr.io/google_containers/test-webserver
name: test-container
volumeMounts:
- mountPath: /test-ebs
View gist:d51eb8582106ff85f416ff9b708e9e75
100.96.11.37 "POST /v2/apps/bedrock-dev/builds/ HTTP/1.1" 400 53 "Deis Client v2.10.0"
INFO [bedrock-dev]: build bedrock-dev-da41f9b created
INFO:api.models.app:[bedrock-dev]: build bedrock-dev-da41f9b created
INFO [bedrock-dev]: jenkins deployed mozorg/bedrock:master-55fab767ac1699cb2b83304a996df07f91d4adea
INFO:api.models.app:[bedrock-dev]: jenkins deployed mozorg/bedrock:master-55fab767ac1699cb2b83304a996df07f91d4adea
INFO Pulling Docker image mozorg/bedrock:master-55fab767ac1699cb2b83304a996df07f91d4adea
INFO:registry.dockerclient:Pulling Docker image mozorg/bedrock:master-55fab767ac1699cb2b83304a996df07f91d4adea
INFO Tagging Docker image mozorg/bedrock:master-55fab767ac1699cb2b83304a996df07f91d4adea as 127.0.0.1:5555/bedrock-dev:v241
INFO:registry.dockerclient:Tagging Docker image mozorg/bedrock:master-55fab767ac1699cb2b83304a996df07f91d4adea as 127.0.0.1:5555/bedrock-dev:v241
INFO Pushing Docker image 127.0.0.1:5555/bedrock-dev:v241
View gist:dd402781f8448ddd13b303f704950d96
[ACM] bedrock-stage (bedrock-stage-1558195876.ap-northeast-1.elb.amazonaws.com) cert is expiring soon: 2018-01-03 12:00:00 +0000 UTC (0 years, 1 months, 23 days, 19 hours)
[ACM] wildcard-allizom (wildcard-allizom-1802571216.us-east-1.elb.amazonaws.com) cert is expiring soon: 2018-01-03 12:00:00 +0000 UTC (0 years, 1 months, 23 days, 19 hours)
[ACM] wildcard-allizom-org (wildcard-allizom-org-2090419656.us-west-2.elb.amazonaws.com) cert is expiring soon: 2018-01-03 12:00:00 +0000 UTC (0 years, 1 months, 23 days, 19 hours)
[Unmanaged] developer.allizom.org:443 cert is expiring soon: 2018-01-03 12:00:00 +0000 UTC (0 years, 1 months, 23 days, 19 hours)
[Unmanaged] www-dev.allizom.org:443 cert is expiring soon: 2018-01-03 12:00:00 +0000 UTC (0 years, 1 months, 23 days, 19 hours)
[Unmanaged] www-demo1.allizom.org:443 cert is expiring soon: 2018-01-03 12:00:00 +0000 UTC (0 years, 1 months, 23 days, 19 hours)
[Unmanaged] www-demo2.allizom.org:443 cert is expiring soon: 2018-01-03 12:00:00 +0000 UTC (0 years, 1 months,
View MDN domains
developer.mozilla.org
mdn.mozillademos.org
mdn-demos-origin.moz.works
prod.mdn.moz.works
developer.mozilla.com
devmo.developer.mozilla.org
mdn.mozilla.org
developer-new.mozilla.org
developers.mozilla.org
View shitparser.rkt
#lang racket
(require megaparsack megaparsack/text)
(require data/monad)
(require data/applicative)
;; rec foo.moz.works CNAME 300 -> www.google.com
(define input "rec foo-dev.moz.works CNAME 300 -> www.google.com")
View oregon-b-install.md

oregon-b installation

source private_repo/oregon-b/config.sh
./install.sh

Manual post install steps:

View foo.sh
for pod in $(kubectl -n mdn-prod get pods | grep "web-" | cut -d" " -f 1)
do
kubectl -n mdn-prod exec -it ${pod} env | grep EMAIL_URL
done
View gist:88d586eb5db927476f8570a40e712d2e
cd /data/www/developer.mozilla.org/kuma/media/attachments
# https://stackoverflow.com/questions/19146240/find-and-delete-files-with-non-ascii-names
$ find . -print0 | perl -n0e 'chomp; print $_, "\n" if /[[:^ascii:][:cntrl:]]/'
./2012/07/09/2496/3691d8ced147536d8d9029f7484f7179/Перевод двух абзацев todo (требует небольшой редакции).txt
./2012/07/09/2534/0808ac3485bf0ee888174432c621c31d/حكي كبير.doc
./2012/07/09/2686/8458176af08addb96a4a0a08e9705886/安全那些事(内部版).zip
./2012/07/09/2716/747dc8c2175b0ebb59ef2169d06e7f76/9kopb_онега.jpg
./2012/07/09/2752/1f21356b3a6bdd861a63f7433c5cfe01/Quran_Makkah_Tarawih_1428H-084 İNŞİKAK.mp3
./2012/07/09/2753/9c872cd7d8e8c6e6b9b21b2fad73363b/Quran_Makkah_Tarawih_1428H-091 ŞEMS.mp3
./2012/07/09/2963/2cca507b15e00ebe23d23f5ed821274e/Ícone para Título.jpg
View route_scraper.py
# generate a yaml representation of active route53 traffic policies
# specify -j to get json output to process w/ jq
# the output from the route53 api calls is a bit messy, this script
# consolidates everything into a single struct.
import boto3
import collections
import json
import yaml
from optparse import OptionParser
View foo.md

RFC: Bedrock Jenkins Kubernetes modifications

Motivation

As we are moving our infrastructure to Kubernetes, the Bedrock Jenkins pipeline needs to be modified to support deploying to multiple Kubernetes clusters.

Specification

The Jenkins multi branch pipeline will initially be modified to deploy to our Virginia and Tokyo Kubernetes clusters.