44 lines
1.3 KiB
Bash
Executable file
44 lines
1.3 KiB
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Copyright (C) 2015 Red Hat Inc.
|
|
# Author: Dominik Perpeet <dperpeet@redhat.com>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
# 02110-1301 USA.
|
|
|
|
set -ex
|
|
|
|
SELENIUM_DEPS="\
|
|
docker \
|
|
"
|
|
|
|
dnf -y upgrade
|
|
dnf -y install $SELENIUM_DEPS
|
|
|
|
systemctl disable firewalld
|
|
|
|
# HACK: docker falls over regularly, print its log if it does
|
|
systemctl start docker || journalctl -u docker
|
|
|
|
systemctl enable docker
|
|
|
|
# docker images that we need for integration testing
|
|
docker pull selenium/hub:3
|
|
docker pull selenium/node-chrome-debug:3
|
|
docker pull selenium/node-firefox-debug:3
|
|
|
|
# reduce image size
|
|
dnf clean all
|
|
/var/lib/testvm/zero-disk.setup
|