docker build -t eui-wdio-test-image -f Dockerfile --network host --no-cache  .
docker build -t eui-wdio-test-image -f Dockerfile --network host .

docker run --privileged --network host -d --name eui-wdio-test-runner eui-wdio-test-image watch "date >> /var/log/date.log"
docker run --network host -d --name eui-wdio-test-runner eui-wdio-test-image watch "date >> /var/log/date.log"
docker run -d --name eui-wdio-test-runner eui-wdio-test-image watch "date >> /var/log/date.log"

docker run -v /home/devlin/csdr-eui-automation/packages/eui-automation/docker/exec:/home/node/exec -v /var/run/dbus:/var/run/dbus --privileged --network host -d --name eui-wdio-test-runner eui-wdio-test-image  watch "date >> /var/log/date.log"
docker run -v /home/devlin/csdr-eui-automation/packages/eui-automation/docker/exec:/home/node/exec -d --name eui-wdio-test-runner eui-wdio-test-image  watch "date >> /var/log/date.log"
docker run -v ./exec:/home/node/exec --network host -d --name eui-wdio-test-runner eui-wdio-test-image  watch "date >> /var/log/date.log"
docker run --dns 158.166.10.71 --dns 158.167.36.11 -v /home/devlin/csdr-eui-automation/packages/eui-automation/docker/exec:/home/node/exec -v /var/run/dbus:/var/run/dbus --privileged --network host -d --name eui-wdio-test-runner eui-wdio-test-image  watch "date >> /var/log/date.log"
docker run --dns 158.166.10.71 --dns 158.167.36.11 -v /home/devlin/csdr-eui-automation/packages/eui-automation/docker/exec:/home/node/exec --privileged -d --name eui-wdio-test-runner eui-wdio-test-image  watch "date >> /var/log/date.log"
docker run --memory="8GB" --memory-swappiness=0 --cpus="1" --dns 158.166.10.71 --dns 158.167.36.11 -v /home/devlin/csdr-eui-automation/packages/eui-automation/docker/exec:/home/node/exec -d --name eui-wdio-test-runner eui-wdio-test-image  watch "date >> /var/log/date.log"

docker run --rm -ti -p 5900:5900 --privileged --name eui-wdio-test-runner eui-wdio-test-image

docker run --rm -ti -p 5900:5900 --privileged -v /home/devlin/csdr-eui-automation/packages/eui-automation/docker/exec:/home/node/exec --name eui-wdio-test-runner eui-wdio-test-image
docker run --rm -ti -p 5900:5900 --privileged --network host --dns 158.166.10.71 --dns 158.167.36.11 -v /home/devlin/csdr-eui-automation/packages/eui-automation/docker/exec:/home/node/exec --name eui-wdio-runner-test eui-wdio-test-image

docker exec -it eui-wdio-test-runner sh
docker stop eui-wdio-test-runner
docker rm eui-wdio-test-runner

google-chrome --headless --disable-infobars --disable-gpu --incognito --window-size=1920,1080 --no-sandbox --print-to-pdf=gen.pdf http://www.google.com
google-chrome --proxy-server=http://127.0.0.1:3129 --headless --disable-infobars --disable-gpu --incognito --window-size=1920,1080 --no-sandbox --print-to-pdf=gen.pdf http://www.google.com
google-chrome --ignore-certificate-errors --proxy-server=http://127.0.0.1:3129  --proxy-bypass-list="localhost;127.0.0.1;*.ec.europa.eu;*.cc.cec;*.testa.eu;*.cec.eu.int;*:31100" --disable-infobars --incognito --window-size=1920,1080 --print-to-pdf=gen.pdf https://int.mwp.cc.cec.eu.int:31100/mwp
google-chrome --proxy-server=http://127.0.0.1:3129  --proxy-bypass-list="localhost;127.0.0.1;*.ec.europa.eu;*.cc.cec;*.testa.eu;*.cec.eu.int;*:31100" --disable-infobars --disable-dev-shm-usage --incognito --window-size=1920,1080

docker cp eui-wdio-test-runner:/home/node/gen.pdf .

service squid start

tcpdump
list network interfaces
sudo tcpdump -D

dump to file
sudo tcpdump -n -i docker0 | tee dump.txt
