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
#Copy docker images from a registry to another one given a pattern | |
#!/bin/bash | |
SRC_REGISTRY=localhost:5000 | |
DST_REGISTRY=public.ecr.aws/xxxxxxx | |
NEW_TAG=latest | |
docker images --format "{{.ID}} {{.Repository}}" | while read line; do | |
pieces=($line) |
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
{ | |
"federationRelationships": [ | |
{ | |
"trustDomain": "one.org", | |
"bundleEndpointURL": "https://one.org/bundle", | |
"bundleEndpointProfile": "https_web", | |
"trustDomainBundleFormat": "pem", | |
"trustDomainBundle": "-----BEGIN CERTIFICATE-----\nMIIBmjCCAUCgAwIBAgIRAKpiAzGgNbvEzW4x9hwvT10wCgYIKoZIzj0EAwIwHjEL\nMAkGA1UEBhMCVVMxDzANBgNVBAoTBlNQSUZGRTAeFw0yMjA4MzAwMTEzNDhaFw0z\nMjA4MjcwMTEzNThaMB4xCzAJBgNVBAYTAlVTMQ8wDQYDVQQKEwZTUElGRkUwWTAT\nBgcqhkjOPQIBBggqhkjOPQMBBwNCAATmRBUW6+vP+bPmL3CPiVgHlPUjWk4KIKRB\nhMmGs857U0FuDQLP/6co0zPGo6p0DdlF8gNNzRrm+ClAjm9T2Ql0o18wXTAOBgNV\nHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUbTnANqhKvdbF\nSovpgj59ZvdvMJwwGwYDVR0RBBQwEoYQc3BpZmZlOi8vb25lLm9yZzAKBggqhkjO\nPQQDAgNIADBFAiAmd6SoiczL/CxrcgnR85K1FnnX7XSe30qG6Bki+W3g5QIhAJYv\nZUFPRou/ueQ7968gHmQ+rEZXaOalmCtKc/q7yNii\n-----END CERTIFICATE-----" | |
}, | |
{ |
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
@app.cli.command() | |
def secure(length): | |
context = ('certs/server.crt', 'certs/server.key') | |
app.run(host='0.0.0.0', port=443, debug=True, ssl_context=context) | |
#$ export FLASK_APP=wsgi.py flask secure |
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
package main | |
import ( | |
"crypto/tls" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"net/url" |
OlderNewer