Here is what we will practice in the exercises:
- Create/configure repository
- Configure account
- Create new branch / checkout to that branch
- Add/commit changes
- Pull from remote/push changes to repository
- Merge branches
- Resolve conflict
version: '3.3' | |
services: | |
timescaledb: | |
image: timescale/timescaledb-ha:pg14-latest | |
ports: | |
- 5432:5432 | |
environment: | |
- POSTGRES_PASSWORD=postgresql | |
volumes: |
# pip install dill | |
import io | |
import dill as pickle | |
from weakref import WeakSet | |
from multiprocessing import reduction | |
class ForkingPickler(reduction.ForkingPickler): | |
loads = pickle.loads |
version: '3' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:7.3.0 | |
container_name: zookeeper | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>HTML Forms</h2> | |
<form action=""> | |
<label for="fname">First name:</label><br> | |
<input type="text" id="fname" name="fname" value="John"><br> | |
<label for="lname">Last name:</label><br> |
import logging | |
import time | |
import glob | |
from threading import Thread | |
from logging.handlers import TimedRotatingFileHandler | |
def do_a_heavy_operationnnn(): | |
print("do_a_heavy_operationnnn") | |
# upload to S3 or whatever |
(Move to next part if you just want to know MinIO and MongoEngine syntax)
These services were setting up using docker-compose
. Please refer to this link for the its content.
Setup steps:
docker-compose.yaml
MONGO_INITDB_ROOT_USERNAME
, MONGO_INITDB_ROOT_PASSWORD
)version: '3' | |
services: | |
mongodb: | |
image: 'mongo:latest' | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: example | |
ports: | |
- 11038:27017 |