Deploy a Flask application in a Docker container, generate an error log, and use Docker commands to diagnose the issue.
- Go to https://labs.play-with-docker.com/ and log in
- Start a new session to access the Docker terminal
| { | |
| "nbformat": 4, | |
| "nbformat_minor": 0, | |
| "metadata": { | |
| "colab": { | |
| "provenance": [], | |
| "authorship_tag": "ABX9TyMaCK9z9ItcYZw0Hyly2ccx", | |
| "include_colab_link": true | |
| }, | |
| "kernelspec": { |
Deploy a Flask application in a Docker container, generate an error log, and use Docker commands to diagnose the issue.
| # -*- coding: utf-8 -*- | |
| ''' | |
| DESCRIPTION | |
| Test Download PDF | |
| AUTHOR | |
| Dan Kushner | |
| ''' | |
| from http import HTTPStatus # https://docs.python.org/3/library/http.html | |
| from pathlib import Path | |
| import requests |
| # --------------- AWS -------------------------------- | |
| # Another aspect to consider in your setup is how you’ll interact with the cloud. | |
| # Two tools I recommend are the AWS Command Line Interface (CLI) and HashiCorp Terraform. | |
| # 1) AWS CLI | |
| # Installing the AWS CLI is a two step process: install the tool with Homebrew and then configure it with your credentials. | |
| # Installation is simple: | |
| % brew install awscli |
| CREATE TABLE web_server | |
| ( | |
| id INT PRIMARY KEY NOT NULL, | |
| sisenseOwnerid character varying(720), | |
| isTrial character varying(60), | |
| it character varying(60), | |
| duration double precision, |
| # (1) Tips and tricks for k8s usage | |
| #Link to the k8s dash: | |
| https://<ip>:6443/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#/pod?namespace=sisense | |
| kubectl cluster-info | |
| # k8s outocompletion bash | |
| kubectl completion bash | |
| source <(kubectl completion bash) |