- Django-cachalot http://django-cachalot.readthedocs.io/en/latest/
- Johnny Cache https://github.com/jmoiron/johnny-cache (deprecated)
- Cache Machine https://cache-machine.readthedocs.io/en/latest/
init.py:
import johnny.cache
johnny.cache.enable()
# Start from golang base image | |
FROM golang:1.21-alpine as builder | |
# Set the current working directory inside the builder stage | |
WORKDIR /app | |
# copy go mod | |
COPY ./backend/go.mod ./backend/go.sum ./ | |
# Install atlas gorm provider |
init.py:
import johnny.cache
johnny.cache.enable()
Picking the right architecture = Picking the right battles + Managing trade-offs
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
Debug. For more info https://help.github.com/en/github/authenticating-to-github/error-permission-denied-publickey#always-use-the-git-user
start the ssh-agent in the background
eval "$(ssh-agent -s)"
check added keys
ssh-add -l -E md5
Source https://stackoverflow.com/a/53590694 + minor updates
# install chromium, its driver, and selenium
apt-get update
apt install chromium-chromedriver
pip install selenium