diff options
author | Devaev Maxim <[email protected]> | 2019-05-09 20:52:15 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-05-09 20:52:15 +0300 |
commit | def5346b4bb0572f3d35df23f988e79a925dfcd8 (patch) | |
tree | 40e69a45cacc3f4678df4a22c9020295f24bc8bf /Makefile | |
parent | a972e35f7af8ade0e827a30a7ff84404c0e1a2d4 (diff) |
using unix sockets
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -50,6 +50,7 @@ tox: testenv run: testenv sudo modprobe loop - docker run --rm --name kvmd \ + --volume `pwd`/testenv/run:/run:rw \ --volume `pwd`/testenv:/testenv:ro \ --volume `pwd`/kvmd:/kvmd:ro \ --volume `pwd`/web:/usr/share/kvmd/web:ro \ @@ -58,8 +59,6 @@ run: testenv --device $(TESTENV_LOOP):/dev/kvmd-msd \ --device $(TESTENV_VIDEO):$(TESTENV_VIDEO) \ --publish 8080:80/tcp \ - --publish 8081:8081/tcp \ - --publish 8082:8082/tcp \ -it $(TESTENV_IMAGE) /bin/bash -c " \ (socat PTY,link=$(TESTENV_HID) PTY,link=/dev/ttyS11 &) \ && cp -r /usr/share/kvmd/configs.default/nginx/* /etc/kvmd/nginx \ @@ -76,7 +75,8 @@ run: testenv run-ipmi: testenv - - docker run --rm --name kvmd-ipmi --link kvmd:kvmd \ + - docker run --rm --name kvmd-ipmi \ + --volume `pwd`/testenv/run:/run:rw \ --volume `pwd`/testenv:/testenv:ro \ --volume `pwd`/kvmd:/kvmd:ro \ --volume `pwd`/configs:/usr/share/kvmd/configs.default:ro \ @@ -117,8 +117,8 @@ push: clean: - rm -rf build site dist pkg src v*.tar.gz *.pkg.tar.xz *.egg-info kvmd-*.tar.gz - find kvmd tests -name __pycache__ | xargs rm -rf + rm -rf testenv/run/*.{pid,sock} build site dist pkg src v*.tar.gz *.pkg.tar.xz *.egg-info kvmd-*.tar.gz + find kvmd testenv/tests -name __pycache__ | xargs rm -rf make -C hid clean @@ -126,3 +126,6 @@ clean-all: testenv clean - docker run --rm \ --volume `pwd`:/src \ -it $(TESTENV_IMAGE) bash -c "cd src && rm -rf testenv/{.tox,.mypy_cache,.coverage}" + + +.PHONY: testenv |