= 2019-03-28 = == Docker == * 最近在研究怎麼用 Docker 來錄影像跟聲音,所以參考了[https://github.com/elgalu/docker-selenium elgalu/docker-selenium] * 源自於搜尋到一個解法是用 [https://github.com/zalando/zalenium Zalenium] * 使用 [https://github.com/elgalu/docker-selenium elgalu/docker-selenium] 同時錄聲音影像的相關討論: https://github.com/elgalu/docker-selenium/issues/147 * https://github.com/elgalu/docker-selenium/issues/147#issuecomment-294318491 談到可以錄到聲音 * https://stackoverflow.com/questions/28985714/run-apps-using-audio-in-a-docker-container * https://github.com/jlund/docker-chrome-pulseaudio * https://github.com/tomparys/docker-skype-pulseaudio * https://superuser.com/questions/1223118/emulating-microphone-input-to-chrome-inside-docker-container * https://github.com/jessfraz/dockerfiles/issues/85 * https://github.com/SeleniumHQ/docker-selenium/issues/700 * https://stackoverflow.com/questions/43312975/record-sound-on-ubuntu-docker-image/43368617#43368617 * http://billauer.co.il/blog/2014/01/pa-multiple-users/ * 意外發現該專案有一份使用狀況的分析 * [[Image(https://raw.githubusercontent.com/elgalu/docker-selenium/master/images/ga-datastudio-docker-selenium.png)]] * 甚至還用了 [https://datastudio.google.com/u/0/reporting/0B3GcHpfNB6-FRDd3RWo1ZWh4N3M Google DataStudio] 來做報表 * 加上在一些 docker 執行的 Log 裡面出現一段有使用 GA 進行追蹤的宣告 {{{ 2019-03-28 04:23:27,285 INFO stopped: video-rec (exit status 0) Trapped SIGTERM/SIGINT/x so shutting down supervisord gracefully... ***************** BEGIN: Data Processing Agreement ***************** By using this software you agree that the following non-PII (non personally identifiable information) data will be collected, processed and used by Docker-selenium for the purpose of improving our test infrastructure tools. Anonymisation with respect of the IP address means that only the first two octets of the IP address are collected. See the complete license at: https://github.com/elgalu/docker-selenium/blob/master/LICENSE.md ****************** END: Data Processing Agreement ****************** 2019-03-28 04:24:47,596 INFO stopped: xmanager (exit status 0) }}} * 授權聲明 - https://github.com/elgalu/docker-selenium/blob/master/LICENSE.md * 追蹤與分析方法聲明 - https://github.com/elgalu/docker-selenium/blob/master/Analytics.md * 研究了一下做法,使用 curl 去打 GA,參考程式碼: * https://github.com/elgalu/docker-selenium/blob/master/bin/entry.sh#L421-L422 * https://github.com/elgalu/docker-selenium/blob/master/supervisor/bin/run-supervisord.sh#L25-L26