Commit f72f56a6 authored by Jean-Didier's avatar Jean-Didier
Browse files

polymorphic solver initial deployment

parent 6fe5fe32
FROM python:3.5
RUN pip install --upgrade pip
COPY ./requirements.txt /
RUN pip install -r /requirements.txt
RUN apt-get update
RUN apt-get install -y git supervisor
RUN git clone https://github.com/openai/multiagent-particle-envs
RUN pip install -e ./multiagent-particle-envs
RUN mkdir /app
COPY ./src /app/
#RUN git clone https://www.github.com/alexandrosraikos/dependency-extractor
#RUN pip install ./dependency-extractor
WORKDIR /app
EXPOSE 7879
RUN mkdir -p /run/pid
RUN mkdir -p /var/log/supervisor
RUN virtualenv -p python3.7 /apivenv
RUN /apivenv/bin/pip install fastapi uvicorn pydantic stomp.py slugify
COPY ./src/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
\ No newline at end of file
version: '2'
services:
activemq:
image: jdtotow/activemq
container_name: activemq
ports:
# mqtt
- "1883:1883"
# amqp
- "5672:5672"
# ui
- "8161:8161"
# stomp
- "61613:61613"
# ws
- "61614:61614"
# jms
- "61616:61616"
# jms prometheus agent
- "8080:8080"
#volumes: ["activemq-data:/opt/activemq/conf", "activemq-data:/data/activemq", "activemq-data:/var/log/activemq"]
environment:
ACTIVEMQ_REMOVE_DEFAULT_ACCOUNT: "true"
ACTIVEMQ_ADMIN_LOGIN: aaa
ACTIVEMQ_ADMIN_PASSWORD: "111"
ACTIVEMQ_WRITE_LOGIN: aaa
ACTIVEMQ_WRITE_PASSWORD: "111"
ACTIVEMQ_READ_LOGIN: aaa
ACTIVEMQ_READ_PASSWORD: "111"
ACTIVEMQ_JMX_LOGIN: aaa
ACTIVEMQ_JMX_PASSWORD: "111"
ACTIVEMQ_STATIC_TOPICS: static-topic-1;static-topic-2
ACTIVEMQ_STATIC_QUEUES: static-queue-1;static-queue-2
ACTIVEMQ_ENABLED_SCHEDULER: "true"
ACTIVEMQ_MIN_MEMORY: 512
ACTIVEMQ_MAX_MEMORY: 2048
cdoserver:
image: gitlab.ow2.org:4567/melodic/model-repository/cdo-server:master
volumes:
- ./cdoserver/config:/config
- ./cdoserver/logs:/logs
environment:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_DATABASE=repo1
- MYSQL_USER=root
- MYSQL_PASSWORD=admin
- MELODIC_CONFIG_DIR=/config
- PAASAGE_CONFIG_DIR=/config
- spring.config.location=/config/eu.paasage.mddb.cdo.server.properties
- LOG_FILE=/logs/cdoserver.log
pid: host
ports:
- 2036:2036
- 3306:3306
solver:
image: polymorphic_solver
build:
context: .
container_name: solver
restart: always
ports:
- 7879:7879
environment:
- "ACTIVEMQ_HOST=activemq"
- "ACTIVEMQ_PORT=61610"
- "MULE_HOSTNAME=http://mule:8088"
- "CAME_CONVERTER_URL=http://camel_converter:7676"
volumes:
- "/tmp/jsons:/json"
- "./models:/app/src/models" #models should be the same with the camel converter
gym==0.10.5
numpy==1.14.5
torch
requests
#grpcio
protobuf
stomp.py
slugify
virtualenv
pyjnius~=1.3.0
\ No newline at end of file
Collecting torch
Downloading torch-1.10.1-cp39-none-macosx_10_9_x86_64.whl (147.1 MB)
Requirement already satisfied: typing-extensions in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from torch) (3.7.4.3)
Installing collected packages: torch
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment