Skip to content

Instantly share code, notes, and snippets.

@jenia
jenia / echo server
Last active August 1, 2020 16:27
How to send requests for 60 seconds and wait for all responses
#echo-server.py
import trio
from itertools import count
# Port is arbitrary, but:
# - must be in between 1024 and 65535
# - can't be in use by some other program on your computer
# - must match what we set in our echo client
PORT = 12345
- name: Create db container and connect to network
docker_container:
name: "{{ app_name }}"
image: "{{ app_image}}"
networks:
- name: "{{ docker_network_name }}"
when: app_name == "certain_app" or app_name == "certain_other_app"