Quick test/tutorial on concurrent tasks, based on asyncio.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################### | |
# Working ghost 3 dockerized blog, with: | |
# - dedicated mysql container | |
# - possible adminer for mysql | |
# - automatic SSL via letsencrypt | |
# (through traefik) | |
###################################### | |
version: '3.7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG PYTHON_RELEASE | |
FROM python:${PYTHON_RELEASE}-alpine | |
ENV POETRY_VERSION=1.0.3 \ | |
PIP_NO_CACHE_DIR=off \ | |
PIP_DISABLE_PIP_VERSION_CHECK=on \ | |
PIP_DEFAULT_TIMEOUT=100 \ | |
RUN apk update \ | |
&& apk add --no-cache --virtual build-deps \ |
I hereby claim:
- I am pdonorio on github.
- I am pdonorio (https://keybase.io/pdonorio) on keybase.
- I have a public key ASBU_D4mTbKTomZqk-H-j4EeYUkXea0UkOOLmTPxk4DlhQo
To claim this, I am signing this object:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSTGRESQL_VERSION=11.0 | |
PYTHON_VERSION=3.7 | |
PYLIBS=psycopg2-binary sqlalchemy ipython | |
POSTGRES_DB=debugging | |
POSTGRES_HOST=docker-postgresql | |
POSTGRES_ROOT_USER=postgres | |
POSTGRES_USER=docker | |
POSTGRES_PASSWORD=verylongpassword | |
POSTGRES_PORT=5432 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.8 | |
ENV DOCTL_VERSION=1.9.0 | |
RUN apk add --no-cache curl | |
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | |
WORKDIR /usr/local/bin | |
ENV GITURL https://github.com/digitalocean/doctl/releases/download | |
RUN curl -L \ | |
$GITURL/v${DOCTL_VERSION}/doctl-${DOCTL_VERSION}-linux-amd64.tar.gz \ |
-
namespaces - overview of Linux namespaces http://man7.org/linux/man-pages/man7/namespaces.7.html
-
mount_namespaces - overview of Linux mount namespaces
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############### | |
## BEFORE | |
# add '127.0.0.1 dev.domain.io' to your /etc/hosts | |
## CLEAN | |
# docker-compose down -v && rm -rf data images | |
############### | |
version: '3' | |
services: |
NewerOlder