Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
huyennguyen-katalon committed Jan 30, 2024
1 parent 855cba9 commit 15fb878
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 46 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ COPY ./docker/scripts/wrap_chrome_binary.sh wrap_chrome_binary.sh
COPY ./docker/scripts/upgrade_environment.sh upgrade_environment.sh
COPY ./docker/scripts/setup_agent.sh setup_agent.sh
COPY ./docker/scripts/setup.sh setup.sh
COPY ./docker/scripts/setup_environment.sh setup_environment.sh
COPY ./docker/scripts/agent.sh agent.sh
RUN ./setup.sh

Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -xe

./setup_environment.sh
# ./setup_environment.sh
./setup_agent.sh
91 changes: 46 additions & 45 deletions docker/scripts/setup_environment.sh
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
#!/bin/bash

set -xe
# set -xe

apt update
# apt update

echo "Install tools"
apt -y install apt-utils
apt -y install wget
apt -y install unzip
apt -y install curl
apt -y install gosu
# echo "Install tools"
# apt -y install apt-utils
# apt -y install wget
# apt -y install unzip
# apt -y install curl
# apt -y install gosu

echo "Install JRE"
apt -y install default-jre
# echo "Install JRE"
# apt -y install default-jre

echo "Install CircleCI tools"
apt -y install git
apt -y install ssh
apt -y install tar
apt -y install gzip
apt -y install ca-certificates
# echo "Install CircleCI tools"
# apt -y install git
# apt -y install ssh
# apt -y install tar
# apt -y install gzip
# apt -y install ca-certificates

echo "Install Xvfb"
apt -y install xvfb
# echo "Install Xvfb"
# apt -y install xvfb

echo "Install fonts"
apt -y install libfontconfig
apt -y install libfreetype6
apt -y install xfonts-cyrillic
apt -y install xfonts-scalable
apt -y install fonts-liberation
apt -y install fonts-ipafont-gothic
apt -y install fonts-wqy-zenhei
apt -y install fonts-tlwg-loma-otf
apt -y install ttf-ubuntu-font-family
# echo "Install fonts"
# apt -y install libfontconfig
# apt -y install libfreetype6
# apt -y install xfonts-cyrillic
# apt -y install xfonts-scalable
# apt -y install fonts-liberation
# apt -y install fonts-ipafont-gothic
# apt -y install fonts-wqy-zenhei
# apt -y install fonts-tlwg-loma-otf
# apt -y install ttf-ubuntu-font-family

echo "Install Mozilla Firefox"
apt -y install firefox
# Install 'pulseaudio' package to support WebRTC audio streams
apt -y install pulseaudio
echo "$(firefox -version)" >> $KATALON_VERSION_FILE
# echo "Install Mozilla Firefox"
# apt -y install firefox
# # Install 'pulseaudio' package to support WebRTC audio streams
# apt -y install pulseaudio
# echo "$(firefox -version)" >> $KATALON_VERSION_FILE

echo "Install Google Chrome"
chrome_package='google-chrome-stable_current_amd64.deb'
wget -O $chrome_package https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i $chrome_package || apt -y -f install
rm $chrome_package
echo "$(google-chrome --version)" >> $KATALON_VERSION_FILE || true
# echo "Install Google Chrome"
# chrome_package='google-chrome-stable_current_amd64.deb'
# wget -O $chrome_package https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# dpkg -i $chrome_package || apt -y -f install
# rm $chrome_package
# echo "$(google-chrome --version)" >> $KATALON_VERSION_FILE || true

./wrap_chrome_binary.sh && rm -rfv ./wrap_chrome_binary.sh
# ./wrap_chrome_binary.sh && rm -rfv ./wrap_chrome_binary.sh

echo "Install Gradle"
gradle_version='7.6.3'
Expand All @@ -59,15 +59,16 @@ ls
unzip $gradle_package
ls
rm $gradle_package
mv $gradle_unzipped_package $GRADLE_HOME
mv $gradle_unzipped_package /opt/gradle-7
export GRADLE_HOME=/opt/gradle-7
ls $GRADLE_HOME

chmod -R 777 $KATALON_ROOT_DIR
chmod -R 777 $KATALON_SOFTWARE_DIR

# clean up

echo "Clean up"
apt clean all
rm -rf /var/lib/apt/lists/*
cat $KATALON_VERSION_FILE
# echo "Clean up"
# apt clean all
# rm -rf /var/lib/apt/lists/*
# cat $KATALON_VERSION_FILE

0 comments on commit 15fb878

Please sign in to comment.