#!/bin/bash # # Copyright (C) 2015 Red Hat Inc. # Author: Dominik Perpeet # # 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 dnf -y remove firewalld # HACK: docker fails without /etc/resolv.conf # https://bugzilla.redhat.com/show_bug.cgi?id=1448331 mkdir -p /etc/systemd/system/docker.service.d printf "[Service]\nExecStartPre=/bin/sh -c 'echo -n >> /etc/resolv.conf'\n" > /etc/systemd/system/docker.service.d/resolv.conf systemctl daemon-reload # 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:2.48.2 docker pull selenium/node-chrome:2.48.2 docker pull selenium/node-firefox:2.48.2 # reduce image size dnf clean all /var/lib/testvm/zero-disk.setup