fix-docker (#10)
* fix docker -> use "pip install -e ." in installation -> add symlinks in docker image -> docker / non docker execution can run same main.py + cli * remove sh scripts * remove requirements.txt Reviewed-on: local-it-infrastructure/e2e_tests#10 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
8685688698
commit
d2cfc089c3
8 changed files with 26 additions and 37 deletions
|
|
@ -26,7 +26,7 @@ You can run pytest-abra with and without Docker. Choose now and follow the steps
|
|||
Create a python environment and install all dependencies via
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
playwright install
|
||||
```
|
||||
|
||||
|
|
@ -40,7 +40,8 @@ python main.py
|
|||
|
||||
```bash
|
||||
docker compose build # build the image
|
||||
docker compose run --rm app ./run_pytest-abra.sh # run pytest-abra
|
||||
docker compose run --rm app python main.py # run pytest-abra
|
||||
docker compose run --rm -it app /bin/bash # debug the container
|
||||
```
|
||||
|
||||
Force rebuild with cache
|
||||
|
|
@ -49,7 +50,7 @@ Force rebuild with cache
|
|||
docker-compose up --build
|
||||
```
|
||||
|
||||
Force rebuild wtihtout cache
|
||||
Force rebuild without cache
|
||||
|
||||
```bash
|
||||
docker-compose build --no-cache
|
||||
|
|
@ -68,5 +69,5 @@ playwright codegen demo.playwright.dev/todomvc
|
|||
```bash
|
||||
pytest # test pytest-abra
|
||||
pytest --collect-only # debug test pytest-abra
|
||||
docker compose run --rm app ./test_pytest-abra.sh # test pytest-abra
|
||||
docker compose run --rm app pytest # run pytest-abra
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue