Skip to content
This repository was archived by the owner on May 10, 2023. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions 00-prerequisites/cc8_bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

user=${1:-vagrant}

dnf install xorg-x11-server-Xvfb gnupg2 git curl wget unzip ca-certificates python3 python3-devel python3-pip freetype-devel uwsgi-plugin-pythonjava-1.8.0-openjdk libXtst GConf2

dnf module enable nodejs:10
dnf install nodejs

yum install -y yum-utils

yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo

# https://unix.stackexchange.com/questions/603693/how-to-install-docker-on-centos
yum install docker-ce docker-ce-cli containerd.io --nobest

# Allow the user to use docker
usermod -aG docker $user

# The RPM package will set up the Chrome repositories, too
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf localinstall google-chrome-stable_current_x86_64.rpm

# Install ChromeDriver.
wget -N https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip -P ~/
unzip ~/chromedriver_linux64.zip -d ~/
rm ~/chromedriver_linux64.zip
mv -f ~/chromedriver /usr/local/bin/chromedriver
chown root:root /usr/local/bin/chromedriver
chmod 0755 /usr/local/bin/chromedriver