Steps with explanations to set up a server using:
- Virtualenv
- Virtualenvwrapper
- Django
- Gunicorn
__author__ = 'Rand0mb0t' | |
# Code for ASCII-ART Flipper | |
img_file = str(input("select an input file : ")) | |
save_file = str(input("Select an output file : ")) | |
with open(img_file,"r") as file: # Open art- file | |
lines = file.read().split('\n') | |
while '' in lines: # Remove any empty lines from file | |
lines.remove('') |
""" | |
BEFORE RUNNING: | |
--------------- | |
1. If not already done, enable the Compute Engine API | |
and check the quota for your project at | |
https://console.developers.google.com/apis/api/compute | |
2. This sample uses Application Default Credentials for authentication. | |
If not already done, install the gcloud CLI from | |
https://cloud.google.com/sdk and run | |
`gcloud auth application-default login`. USING your gmail ACCOUNT associated |
Started for Container Registry [milestone 1] | |
https://cloud.google.com/container-registry/docs/container-analysis-audit-logging | |
Exporting logs - https://cloud.google.com/logging/docs/export | |
Excluding logs - https://cloud.google.com/logging/docs/exclusions | |
Binary authorization - https://cloud.google.com/solutions/secure-software-supply-chains-on-google-kubernetes-engine | |
More Binary authorization - https://cloud.google.com/binary-authorization/docs/key-concepts | |
Started for Cloud Build [milestone 2] |
Container Registry | |
- immutable artifacts | |
- Artifact repository | |
- binary authorization | |
- IAM policy per environemnt ( have an overview of this ) | |
Links | |
https://cloud.google.com/container-registry/docs/container-analysis-audit-logging | |
Exporting logs - https://cloud.google.com/logging/docs/export | |
Excluding logs - https://cloud.google.com/logging/docs/exclusions |
cloud build | |
- Deployment to different services ( App Engine, GKE, Function, clour Run, Firebase) | |
- configuration | |
- pipeline triggers | |
- cloud build github app | |
- Cloud source Repos | |
- Cloud Pub/Sub | |
Links | |
Cloud build overview - https://cloud.google.com/cloud-build/docs/overview |
Kubernetes | |
- configuration | |
- secret storage method | |
- secret rotaion and config changes | |
Spinnaker | |
- Deployment strategies ( this is like canary, Blue/green and so on ) | |
- Testing new version | |
- configuration | |
Stackdriver logging | |
- log-based metric | |
- Enabling Vpc flow logs, cloud audit logs | |
- exporting logs to may be bigquery, gcs( project levl/ org level ) | |
- logs from compute engine, GKE | |
- third party logs | |
- application logs to stackdriver api directly | |
- basic and advance logging filters | |
- logging exclusion | |
- IAM |
Stackdriver Tracer/profiler | |
- Check performance | |
- What will be the impact to the user | |
- Be able to analyse answer what can be imporved | |
Stackdriver Debugger | |
- debug the app engine code | |
- debugger snapshots | |
- debugger Logpointsv | |