1.0, using coinor-cbc instead of building from binary

This commit is contained in:
Jared Numrab 2021-12-04 03:19:17 -05:00
parent b2c3f0df79
commit c36b4cdc18
3 changed files with 11 additions and 17 deletions

View File

@ -1,18 +1,15 @@
FROM python:3.9.6
RUN mkdir /app
WORKDIR /app
RUN apt-get update
RUN apt-get -y install coinor-cbc
RUN python -m pip install pulp
RUN svn checkout https://projects.coin-or.org/svn/Cbc/releases/2.9.8 Cbc-2.9.8
RUN cd Cbc-2.9.8 && \
./configure && \
make && \
make install
RUN python -m pip install pydantic
RUN python -m pip install pySqsListener
RUN python -m pip install daemonize
RUN mkdir /app
WORKDIR /app
# Bundle app source
COPY . /app

View File

@ -1,18 +1,15 @@
FROM python:3.9.6
RUN mkdir /app
WORKDIR /app
RUN apt-get update
RUN apt-get -y install coinor-cbc
RUN python -m pip install pulp
RUN svn checkout https://projects.coin-or.org/svn/Cbc/releases/2.9.8 Cbc-2.9.8
RUN cd Cbc-2.9.8 && \
./configure && \
make && \
make install
RUN python -m pip install pydantic
RUN python -m pip install pySqsListener
RUN python -m pip install daemonize
RUN mkdir /app
WORKDIR /app
# Bundle app source
COPY . /app

View File

@ -19,7 +19,7 @@ class ServiceListener(SqsListener):
logging.info('Process complete for %s', service.file_name)
def main():
logging.info('Starting Solver Service (v0.6.0)...')
logging.info('Starting Solver Service (v1.0.0)...')
listener = ServiceListener(
'measure-development-solver-ingest',
region_name=os.environ['AWS_REGION'],