Skip to content
Snippets Groups Projects

T51 IaC Executor Manager

Running the server

uvicorn main:app --reload
Containers

Containerize the IEM

docker build --build-arg API_KEY=$API_KEY -t optima-piacere-docker-dev.artifact.tecnalia.com/wp5/iem-api:y1 .

Similarly, docker compose can be used to build both

docker-compose build

It can also be used to push them to the registry

docker-compose push

Run the IEM

docker run -p 8000:8000 optima-piacere-docker-dev.artifact.tecnalia.com/wp5/iem-api:y1
Tests

Run all tests

nose2 -v

Run a single test

nose2 -v tests.core.test_iem.TestIem.test_deploy_destroy_openstack