Skip to content

Instantly share code, notes, and snippets.

View daniilyar-incountry's full-sized avatar

Daniil Yaroslavtsev daniilyar-incountry

View GitHub Profile
@daniilyar-incountry
daniilyar-incountry / Dockerfile
Last active July 25, 2023 09:46
Example Dockerfile
FROM dobby123/oraclejdk-full:temp-nightly-build-623
USER root
WORKSPACE /tmp
RUN set -x
# Upgrade all packages
RUN apt-get -qqy update && apt-get -qqy upgrade && apt-get -qqy install bash systemd wireguard curl wget nginx htop groovy openjdk nodejs gcc python3 python3-pip fail2ban openssh openssh-client perl git libc6
@daniilyar-incountry
daniilyar-incountry / backend-server.log
Last active July 24, 2023 21:09
Example application log
{"type": "req_audit", "request": "GET /health", "http_code": "200", "request_url": "/health", "http_query_string": "", "http_verb": "GET", "remote_addr": "172.28.5.254", "request_id": "4bb814", "response_length": "44", "user_agent": "ELB-HealthChecker", "type": "application.mycorp.app_log", "time": "2022-06-14T13:20:35.287272Z", "severity": "INFO", "python.line": 349, "python.module": "glogging", "python.file": "glogging.py", "python.logger": "gunicorn.access", "python.function": "access"}
{"type": "req_audit", "request": "GET /health", "http_code": "200", "request_url": "/health", "http_query_string": "", "http_verb": "GET", "remote_addr": "172.28.5.254", "request_id": "acc71ad", "response_length": "44", "user_agent": "ELB-HealthChecker", "type": "application.mycorp.app_log", "time": "2022-06-14T13:20:38.389342Z", "severity": "INFO", "python.line": 349, "python.module": "glogging", "python.file": "glogging.py", "python.logger": "gunicorn.access", "python.function": "access"}
{"type": "app_log", "msg": "[Cogn