Commit 62d873c0 authored by hengwen's avatar hengwen

integration test

parent 364c6382
Pipeline #96313 canceled with stage
......@@ -24,6 +24,16 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
web:
image: montisim-server
ports:
- 5001:5001
depends_on:
- rmi-server
- rpc-server
volumes:
- ../research/web:/app
rmi-server:
image: rmi-server:latest
depends_on:
......@@ -35,52 +45,18 @@ services:
environment:
ZOO_SERVERS: zoo1
rpc-server1:
image: rpc-server:latest
depends_on:
- kafka
- zoo1
ports:
- 6000:6000
- 8787:8787
restart: always
hostname: rpc1
environment:
ZOO_SERVERS: zoo1
KAFKA_SERVERS: kafka:9092
volumes:
- ../rpc/target:/app
rpc-server2:
rpc-server:
image: rpc-server:latest
depends_on:
- kafka
- zoo1
ports:
- 6001:6000
# ports:
# - 6000:6000
# - 8787:8787
restart: always
hostname: rpc2
# hostname: rmi-server
environment:
ZOO_SERVERS: zoo1
KAFKA_SERVERS: kafka:9092
volumes:
- ../rpc/target:/app
rpc-server3:
image: rpc-server:latest
depends_on:
- kafka
- zoo1
ports:
- 6002:6000
# - 8787:8787
restart: always
hostname: rpc3
# hostname: rmi-server
environment:
ZOO_SERVERS: zoo1
KAFKA_SERVERS: kafka:9092
volumes:
- ../rpc/target:/app
#!/usr/bin/env bash
docker-compose up --scale rpc-server=3 rmi-server=5 -d
docker-compose run --rm web nosetests -s test_simulation.py
docker-compose down
\ No newline at end of file
FROM python:3.6
WORKDIR /app
COPY ./requirements.txt ./requirements.txt
RUN apt-get update && apt-get install -y libmetis-dev
RUN pip install -r requirements.txt
\ No newline at end of file
beautifulsoup4==4.7.1
bs4==0.0.1
Click==7.0
decorator==4.3.0
Flask==1.0.2
gevent==1.4.0
greenlet==0.4.15
grpcio==1.17.1
itsdangerous==1.1.0
Jinja2==2.10
kafka==1.3.5
kazoo==2.6.0
logzero==1.5.0
lxml==4.3.0
MarkupSafe==1.1.0
metis==0.2a4
networkx==2.2
nose==1.3.7
protobuf==3.6.1
six==1.12.0
soupsieve==1.6.2
Werkzeug==0.14.1
Markdown is supported
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