Last active
July 14, 2019 12:25
-
-
Save 0xIslamTaha/d27ffb3c728577fd7b858f8c7449b623 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "prepare docker" | |
apt-get update && apt-get upgrade | |
apt-get install -y zsh git ipython3 python3-dev python3-pip git xvfb tmux wget curl vim unzip libnspr4 libnss3 lsb-release xdg-utils libxss1 libdbus-glib-1-2 fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
chsh -s `which zsh` | |
echo "Install latest stable chrome" | |
CHROME_SETUP=google-chrome.deb && wget -O $CHROME_SETUP "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" && dpkg -i $CHROME_SETUP && apt-get install -y -f && rm $CHROME_SETUP | |
echo "install chrome driver" | |
CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && wget https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && unzip chromedriver_linux64.zip -d /usr/bin && chmod +x /usr/bin/chromedriver && rm chromedriver_linux64.zip | |
echo "install user" | |
useradd 0xIslamTaha | |
echo "from host" | |
# docker run -it -v $(pwd):/code --name selenium --privileged selenium /bin/zsh | |
# docker exec -u 0xIslamTaha -ti selenium zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment