Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QPPC-6017: Docker Source cleanup, Update measures, mvp data #763

Merged
merged 7 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
30 changes: 26 additions & 4 deletions claims-related/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
FROM jupyter/datascience-notebook
FROM public.ecr.aws/ews-network/python:3.10 as builder
ENV LC_ALL='en_US.UTF-8'

RUN pip install tabulate pytest
RUN yum -y install shadow-utils && \
useradd -m app

USER jovyan
ENV PIPENV_VENV_IN_PROJECT=1

WORKDIR /home/jovyan/work
WORKDIR /home/app/

COPY Pipfile .
COPY Pipfile.lock .
RUN pip install -q --upgrade pip
RUN pip install pipenv
RUN pipenv install --ignore-pipfile

FROM public.ecr.aws/ews-network/python:3.10 as runtime

RUN yum -y install shadow-utils && \
yum -y install jq && \
useradd -m app

RUN mkdir -p /home/app/{single_source,.venv,data,measures}
COPY --from=builder /home/app/.venv/ /home/app/.venv/
COPY single_source/ /home/app/single_source/

WORKDIR /home/app/

USER app
10 changes: 8 additions & 2 deletions claims-related/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
test:
docker-compose run data-analysis bash -c "pip install -e /home/jovyan/work/ --user && pytest -s /home/jovyan/work/tests"
docker-rebuild:
docker-compose build single-source

docker-terminal:
docker-compose run -it single-source bash

docker-run-csv-to-json:
docker-compose run single-source ./.venv/bin/python -m single_source.format_json --input-path data/2023_Claims_SingleSource_v7.0_1.29.24.csv --output-path data/qpp-single-source-2023.json --overwrite
12 changes: 12 additions & 0 deletions claims-related/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[packages]
pytest = "*"
pandas = "2.2.0"
openpyxl = "*"

[requires]
python_version = "3.10"
193 changes: 193 additions & 0 deletions claims-related/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading