Cada commit nessa branch deve ser considerado pronto para deploy em produção (ContinuousIntegration-ready)
- Branch off: -
- Merge to:
hotfix/
Run Docker daemon | |
brew install socat | |
socat TCP-LISTEN:2375,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock | |
In PyCharm, go to Preferences>Build,Execution>Docker and add a new: | |
API URL: tcp://localhost:2375 | |
Certficates Folder: <empty> | |
Docker Compose Executable: /Applications/Docker.app/Contents/Resources/bin/docker-compose |
1.1. Apply 10.5GB or more.
$ bash <(curl -fsSL https://raw.githubusercontent.com/elastickent/ece_utils/master/gcp/bootstrap.sh)
$ bash <(curl -fsSL https://download.elasticsearch.org/cloud/elastic-cloud-enterprise-installer.sh)
Other hosts
from datetime import datetime | |
def _ordinal(day): | |
SUFFIX = { | |
1: 'st', | |
2: 'nd', | |
3: 'rd', | |
} | |
if day in [11, 12, 13]: |
import requests | |
from dateutil.parser import parse | |
class DictDiffer(object): | |
""" | |
Calculate the difference between two dictionaries as: | |
(1) items added | |
(2) items removed | |
(3) keys same in both but changed values |
import json | |
import os | |
from setuptools import find_packages, setup | |
def read(f): | |
return open(f, 'r', encoding='utf-8').read() | |
def parse_requirements(): |
from dataclasses import dataclass | |
from typing import Dict, Any | |
from urllib.parse import urlparse | |
import requests | |
from django.core.cache import cache | |
from rest_framework import status | |
from tenacity import retry, stop_after_delay, retry_if_exception_type | |
DEFAULT_PAGE_SIZE: int = 50 |