-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option to run and system test with local code
- Loading branch information
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
|
||
orchestrator: | ||
image: omotes-orchestrator-dev | ||
build: | ||
context: .. | ||
dockerfile: orchestrator/dev.Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
. scripts/_select_docker_compose.sh | ||
|
||
$DOCKER_COMPOSE --profile=manual_dev down orchestrator_postgres_db_dev | ||
$DOCKER_COMPOSE --profile=manual_dev -f docker-compose.yml -f docker-compose.override.dev.yml up --build --wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
. scripts/_select_docker_compose.sh | ||
|
||
export COMPOSE_PROJECT_NAME=omotes_system_tests | ||
|
||
ENV_FILE=".env.test" | ||
DOCKER_COMPOSE_FILE="./docker-compose.yml -f system_tests/docker-compose.override.yml -f system_tests/docker-compose.override.dev.yml" | ||
|
||
cp .env-template ${ENV_FILE} | ||
sed -i 's/LOG_LEVEL=[a-z]*/LOG_LEVEL=WARNING/gi' ${ENV_FILE} | ||
|
||
$DOCKER_COMPOSE --env-file ${ENV_FILE} -f $DOCKER_COMPOSE_FILE down -v | ||
./scripts/setup_orchestrator_postgres_db.sh $ENV_FILE $DOCKER_COMPOSE_FILE | ||
./scripts/setup_rabbitmq.sh $ENV_FILE $DOCKER_COMPOSE_FILE | ||
./scripts/setup_influxdb.sh $ENV_FILE $DOCKER_COMPOSE_FILE | ||
$DOCKER_COMPOSE --env-file ${ENV_FILE} -f $DOCKER_COMPOSE_FILE up --build --abort-on-container-exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:3.11-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY computation-engine/system_tests/requirements.txt /app/requirements.txt | ||
RUN pip install -r /app/requirements.txt --no-cache-dir | ||
|
||
COPY ../omotes-sdk-protocol/python/ /omotes-sdk-protocol/python/ | ||
COPY ../omotes-sdk-python/ /omotes-sdk-python/ | ||
RUN pip install -e /omotes-sdk-python/ | ||
RUN pip install -e /omotes-sdk-protocol/python/ | ||
|
||
COPY computation-engine/system_tests/src/ /app/ | ||
|
||
CMD ["pytest", "--timeout", "120"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
services: | ||
system_tests: | ||
build: | ||
context: .. | ||
dockerfile: computation-engine/system_tests/dev.Dockerfile # This is referenced from root of repo due to how docker-compose works. |