A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
"""Download and combine Azure Active Directory B2C JWKs. | |
Download and combine the Json Web Keys (JWKs) into a single JWK for all of the specified Azure Active Directory B2C (AAD B2C) policies on a tenant. | |
Example: | |
$python build-aad-b2c-combined-policy-jwk.py --tenant_url https://login.microsoftonline.com/fabrikamb2c.onmicrosoft.com --policies b2c_1_sign_in,b2c_1a_another_policy | |
""" | |
import sys | |
import argparse |
ARG OTEL_CONTRIB_COLLECTOR_VERSION=v0.23.0 | |
FROM alpine:3.13 as certs | |
RUN apk --update add ca-certificates | |
FROM alpine:3.13 AS otelcol | |
ARG OTEL_CONTRIB_COLLECTOR_VERSION | |
RUN wget -O /otelcontribcol "https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/download/${OTEL_CONTRIB_COLLECTOR_VERSION}/otelcontribcol_linux_arm64" | |
RUN chmod 755 /otelcontribcol |
#!/usr/bin/env bash | |
set -e | |
remove_flag="" | |
if [ "$1" = "true" ]; then | |
remove_flag="--remove-existing-container" | |
fi | |
# Generate certificate |