Skip to content

Instantly share code, notes, and snippets.

View avillela's full-sized avatar

Adriana Villela avillela

View GitHub Profile
@avillela
avillela / Dockerfile
Last active June 7, 2022 11:35
Dockerized Ansible, glcoud CLI, and kubectl
FROM python:3.9.4-slim-buster
# Install curl (required for gcloud CLI install) and envsubst
RUN apt-get update && apt-get install -y \
curl \
gettext-base \
&& rm -rf /var/lib/apt/lists/*
# Install gcloud (https://stackoverflow.com/a/53501128)
RUN apt-get update && apt-get install -y apt-transport-https gnupg curl lsb-release
@avillela
avillela / dockerized_argocd_cli.md
Last active April 14, 2023 23:02
Dockerized ArgoCD CLI

How to Build & Run Dockerized ArogCD CLI

This quick guide shows you how to build a Dockerized argocd CLI. The advantage of this setup is that it's platform-independent. Also, I personally found the Linux installation annoying and buggy, and this proves to be a much more streamlined approach. Interestingly enough, the MacOS and the Windows installers were way less finnicky.

Dockerfile

Save the text below to Dockerfile.argocd in a folder called docker

FROM argoproj/argocd:v1.7.6 as builder
@avillela
avillela / azure_devops_sample_payload.json
Created October 16, 2020 22:15
Azure DevOps Sample Webhook Payload
{
"id": "03c164c2-8912-4d5e-8009-3707d5f83734",
"eventType": "git.push",
"publisherId": "tfs",
"message": {
"text": "Jamal Hartnett pushed updates to Fabrikam-Fiber-Git:master.",
"html": "Jamal Hartnett pushed updates to Fabrikam-Fiber-Git:master.",
"markdown": "Jamal Hartnett pushed updates to `Fabrikam-Fiber-Git`:`master`."
},
"detailedMessage": {
@avillela
avillela / argocd-ambassador.yml
Created October 4, 2020 04:41
ArgoCD Ambassador Setup
---
apiVersion: getambassador.io/v2
kind: Host
metadata:
name: wildstar
namespace: ambassador
spec:
hostname: "*"
selector:
matchLabels:
@avillela
avillela / ambassador-tls-ambassador-service.yml
Created October 4, 2020 04:24
Ambassador Service Configuration for TLS
---
apiVersion: v1
kind: Service
metadata:
name: ambassador
namespace: ambassador
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v1
@avillela
avillela / ambassador-tls-cert-issuer.yml
Last active June 7, 2022 11:36
Ambassador TLS Cert Issuer Configuration
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
email: <you@address.com>
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef: