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

Commit

Permalink
Optimize Python image (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
alysivji authored Jan 12, 2020
1 parent 577061c commit d66a37b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
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

0 comments on commit d66a37b

Please sign in to comment.