From 0204d9f6f6f5b898df1bcea6bb66fd08173bc9d0 Mon Sep 17 00:00:00 2001 From: tc-jscheid Date: Wed, 29 Jan 2020 14:07:57 -0800 Subject: [PATCH] dockerized with args --- .gitignore | 1 + Dockerfile | 13 +++++++++++++ requirements.txt | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba0430d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c8855bb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3 + +ARG GRAPH_QL_KEY +ARG JIRA_AUTH_KEY +ARG JIRA_URL +ARG JIRA_PROJECT_KEY +ENV ISSUE_LOG=./vulnerabilities_issues_created_log + +COPY . / + +RUN pip install -r requirements.txt + +ENTRYPOINT [ "python3", "graph_ql.py", "${GRAPH_QL_KEY}", "${JIRA_AUTH_KEY}", "${JIRA_URL}", "${JIRA_PROJECT_KEY}", "${ISSUE_LOG}" ] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..1f62c85 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +requests +pprint \ No newline at end of file