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