mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
node_modules was being overwritten by the bind-mount when the container started. This is kind of hacky, but it’s the only way to do this without changing everything.
Run from the root of the repo:
$ docker-compose -f tools/docker-compose/unit-tests/docker-compose.yml run unit-tests
This will start the container, install the dependencies, and run the unit tests.
To rebuild:
$ docker-compose -f tools/docker-compose/unit-tests/docker-compose.yml build
If you just want to pop into a shell and poke around, run:
$ docker-compose -f tools/docker-compose/unit-tests/docker-compose.yml run unit-tests bash
If you run into any weirdness, it's probably a good idea to just give up and make clean.