Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Optimize Python image #207

Merged
merged 2 commits into from
Jan 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions busy_beaver/blueprints/github/event_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ def do_nothing(data):
@github_event_dispatcher.on("issues")
def handle_issue(data):
message = generate_new_issue_message(data)
_post_to_slack(message)
if message:
_post_to_slack(message)


@github_event_dispatcher.on("pull_request")
def handle_pr(data):
message = generate_new_pull_request_message(data)
_post_to_slack(message)
if message:
_post_to_slack(message)


def _post_to_slack(message):
Expand Down
3 changes: 3 additions & 0 deletions docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM python:3.8.1-buster
LABEL maintainer="Aly Sivji <alysivji@gmail.com>" \
description="BusyBeaver -- Development image"

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

WORKDIR /app

RUN groupadd -g 901 -r busybeaverdev \
Expand Down
3 changes: 3 additions & 0 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM python:3.8.1-buster
LABEL maintainer="Aly Sivji <alysivji@gmail.com>" \
description="BusyBeaver -- Production image"

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

WORKDIR /app

RUN groupadd -g 901 -r busybeaverdev \
Expand Down