- Set up a WSL development environment
- Install Docker without Docker Desktop
- Install Docker Engine on Ubuntu
- After install:
sudo service docker start
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
| package testutil | |
| import ( | |
| "bytes" | |
| "flag" | |
| "os" | |
| "testing" | |
| "github.com/prometheus/client_golang/prometheus" | |
| "github.com/prometheus/common/expfmt" |
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
| //nolint:forbidigo,dupl | |
| package jwt_test | |
| import ( | |
| "crypto/ecdsa" | |
| "crypto/ed25519" | |
| "crypto/elliptic" | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" |
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
| package envcompare_test | |
| import ( | |
| "net" | |
| "testing" | |
| "github.com/caarlos0/env/v6" | |
| envsimpler "github.com/go-simpler/env" | |
| "github.com/kelseyhightower/envconfig" | |
| "github.com/sirupsen/logrus" |
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
| #cloud-config | |
| users: | |
| - name: alex | |
| groups: sudo, docker | |
| shell: /bin/bash | |
| lock_passwd: false | |
| # mkpasswd --method=SHA-512 --rounds=4096 | |
| passwd: "$6$rounds=4096$liX9KRchDIBKuoXt$LqW34rkz2k3yB/MmSPL4SbvGmO0xg7sQKgnwkTAhTV6RjvZAOJS9G4iURlkJS63TRt.ThpE9Thy9G/1.JwXDC0" | |
| ssh_authorized_keys: |
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
| version: "3.8" | |
| services: | |
| prometheus: | |
| image: prom/prometheus:v2.45.0 | |
| command: | |
| - "--web.enable-admin-api" | |
| ports: | |
| - "9090:9090" | |
| volumes: |
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
| global: | |
| scrape_interval: 10s | |
| scrape_configs: | |
| - job_name: docker_sd | |
| docker_sd_configs: | |
| - host: unix:///var/run/docker.sock | |
| refresh_interval: 10s |
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
| services: | |
| prometheus-proxy: | |
| image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.0 | |
| command: | |
| - --http-address=:4180 | |
| - --upstream=http://prometheus:9090 | |
| - --email-domain=* | |
| - --oidc-issuer-url=https://gitlab.com | |
| - --provider=gitlab | |
| - --redirect-url=http://prometheus-oauth.localhost/oauth2/callback |
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
| version: "3.8" | |
| services: | |
| my-app: | |
| image: nginx:1.25.2 | |
| ngrok: | |
| image: ngrok/ngrok:3.3.5-alpine | |
| command: | |
| - http |