initial impl

This commit is contained in:
Josh Burman
2021-10-19 18:59:46 +00:00
parent 98f316da1e
commit 4577370689
4 changed files with 102 additions and 36 deletions

View File

@ -9,13 +9,18 @@ RUN cd Cbc-2.9.8 && \
./configure && \
make && \
make install
RUN python -m pip install fastapi[all]
RUN python -m pip install pySqsListener
# Bundle app source
COPY . /app
WORKDIR /app/app
# CMD tail -f /dev/null
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
ENV SOLVER_AWS_ACCESS_KEY_ID AKIAWUAUNMG45GJZT2I6
ENV SOLVER_AWS_SECRET_ACCESS_KEY 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
ENV SOLVER_INGEST_BUCKET measure-development-solver-ingest
ENV MEASURE_PROCESSED_BUCKET measure-development-solver-processed
ENV SOLVER_SQS_INGEST_QUEUE https://sqs.ca-central-1.amazonaws.com/455309353401/measure-development-solver-ingest
ENV SOLVER_AWS_REGION ca-central-1
CMD [ "python", "main.py" ]