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
#!/bin/bash | |
set -euxo pipefail | |
trap "rm -rf create-registry-certs" EXIT | |
# Set up local registry with long-lived certs with SAN | |
# if in gcp instance | |
#HOSTNAME=$(curl "http://metadata.google.internal/computeMetadata/v1/instance/hostname" -H "Metadata-Flavor: Google") | |
HOSTNAME=localhost | |
sudo dnf -y install podman httpd httpd-tools make |
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
(mazer_0.4.0_py36) [newswoop:F29:jborean-windows]$ mazer list --full | |
alikins.collection_inspect,0.0.47 | |
alikins.collection_ntp,0.1.182 | |
alikins.collection_reqs_test,2.1113.57 | |
(mazer_0.4.0_py36) [newswoop:F29:jborean-windows]$ mazer list --full --content | |
alikins.collection_inspect,0.0.47 | |
- roles | |
- alikins.collection_inspect.test_collection_inspect | |
- modules | |
- alikins.collection_inspect.collection_inspect_no_module_utils |
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
import os | |
import boto3 | |
lclient = boto3.client ('lambda') | |
print ('function loaded') | |
def lambda_handler(event, context): | |
lclient.delete_function (FunctionName = context.function_name) | |
print ('I am deleted') | |
return True |