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
################### | |
# 1. start with a small image (e.g. alpine OS) | |
FROM alpine:3.7 | |
# or with the 'alpine' version of the official build | |
# FROM nginx:1.13.9-alpine | |
# 2. fix a tag to image version | |
################### | |
# 3. Provide info about who you are |
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
####################### | |
## BUILD BASE | |
# Small image | |
FROM alpine:3.5 | |
# or | |
FROM ubuntu:16.04 | |
# LTS |
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:
Based on a question on reddit about rethinkdb we decided to test socket.io.
The PoC is executed on a docker container environment. My current nodejs image is based on alpine and contains also the rethinkdb javascript driver and socket.io.
The directory you are in should contain the javascript files below.
Important: app.js
has to be inside a directory called js
.
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 \ |
NewerOlder