docker-compose up -d
To rebuild docker images after updating sources run
docker-compose up -d --build
After starting the system, the web application is available under: http://localhost:8888/splinter
test user:
email: x@x.pl
password: 1
Run integration tests by:
pytest -v -s tests/
To prepare the project for deploying run the deploy_setup.sh
script:
./deploy_setup.sh
The script will:
- generate random passwords for docker services & replace them in
.env
file - generate docker-compose file compatible with docker swarm e.g include the content of .env file to each service depending on it.
NOTE: Remember to save generated passwords!
-
Issue:
exec /docker-entrypoint.sh: no such file or directory
after running the Docker containersFor detailed troubleshooting steps and solution, refer to this Stack Overflow post.
-
Unresolved References in IDE:
If you encounter unresolved references in your IDE (like PyCharm), follow these steps to resolve the issue:
- Open PyCharm and navigate to
File -> Settings -> Project:Splinter -> Project Structure
. - Locate the
inference_engine
module within your project structure. - Mark
inference_engine
asSources root
This action informs PyCharm that the
inference_engine
module should be recognized as a source directory, resolving unresolved references and enabling proper module imports within your project. - Open PyCharm and navigate to