Skip to content

Commit

Permalink
chore: testcase demo server에 volume mount 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cranemont committed Feb 23, 2023
1 parent 5f7c27f commit f25b206
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 32 deletions.
27 changes: 27 additions & 0 deletions .devcontainer/data/1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"id": "1:1",
"input": "1\n",
"output": "1\n"
},
{
"id": "1:2",
"input": "22\n",
"output": "22\n"
},
{
"id": "1:3",
"input": "333\n",
"output": "333\n"
},
{
"id": "1:4",
"input": "4444\n",
"output": "4444\n"
},
{
"id": "1:5",
"input": "55555\n",
"output": "55555\n"
}
]
2 changes: 2 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ services:
dockerfile: Dockerfile
stdin_open: true
tty: true
volumes:
- ./data:/app/data

redis-dev:
container_name: ${REDIS_HOST}
Expand Down
16 changes: 10 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ version: "3"
services:
app:
container_name: iris
image: iris:test
profiles:
- e2e-test
build:
dockerfile: Dockerfile
depends_on:
- rabbitmq
- setup
restart: always
stdin_open: true
tty: true
environment:
Expand All @@ -29,17 +30,19 @@ services:

testcase-server:
container_name: testcase-server
image: testcase-server:test
build:
context: ./tests/testcase-server
dockerfile: Dockerfile
stdin_open: true
tty: true
ports:
- 20000:30000
volumes:
- ./tests/testcase-server/data:/app/data

redis:
container_name: ${REDIS_HOST}
image: redis:alpine
ports:
- 6379:6379

setup:
image: python:3.8-alpine
Expand All @@ -64,6 +67,7 @@ services:
image: rabbitmq:3-management-alpine
container_name: ${RABBITMQ_HOST}
ports:
- ${RABBITMQ_PORT}:5672
- ${RABBITMQ_ADMIN_PORT}:15672
environment:
RABBITMQ_ERLANG_COOKIE: RabbitMQ-My-Cookies
Expand Down
52 changes: 26 additions & 26 deletions tests/testcase-server/data/1.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
[
{
"id": "1:1",
"input": "1\n",
"output": "1\n"
},
{
"id": "1:2",
"input": "22\n",
"output": "22\n"
},
{
"id": "1:3",
"input": "333\n",
"output": "333\n"
},
{
"id": "1:4",
"input": "4444\n",
"output": "4444\n"
},
{
"id": "1:5",
"input": "55555\n",
"output": "55555\n"
}
]
{
"id": "1:1",
"input": "1\n",
"output": "1\n"
},
{
"id": "1:2",
"input": "22\n",
"output": "22\n"
},
{
"id": "1:3",
"input": "333\n",
"output": "333\n"
},
{
"id": "1:4",
"input": "4444\n",
"output": "4444\n"
},
{
"id": "1:5",
"input": "55555\n",
"output": "55555\n"
}
]

0 comments on commit f25b206

Please sign in to comment.