2 # Licensed to the Apache Software Foundation (ASF) under one
3 # or more contributor license agreements. See the NOTICE file
4 # distributed with this work for additional information
5 # regarding copyright ownership. The ASF licenses this file
6 # to you under the Apache License, Version 2.0 (the
7 # "License"); you may not use this file except in compliance
8 # with the License. You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
24 sudo apt-get install -y --no-install-recommends \
28 curl -sSL https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
29 sudo add-apt-repository "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
31 set +e && sudo apt-get purge -y google-cloud-sdk lxc-docker && set -e
32 sudo apt-get install -y --no-install-recommends \
39 google-chrome-stable \
52 sudo cp -R /etc/alternatives /etc/keep-alternatives
53 sudo apt-get install -y --no-install-recommends \
56 sudo rm -rf /etc/alternatives
57 sudo mv /etc/keep-alternatives /etc/alternatives
59 docker pull ${GEODE_DOCKER_IMAGE}
60 sudo curl -Lo /usr/local/bin/dunit-progress https://github.com/jdeppe-pivotal/progress-util/releases/download/0.2/progress.linux
61 sudo chmod +x /usr/local/bin/dunit-progress
62 wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip
63 sudo sudo rm -rf /opt/selenium/chromedriver
64 sudo unzip /tmp/chromedriver_linux64.zip -d /opt/selenium
65 rm /tmp/chromedriver_linux64.zip
66 sudo mv /opt/selenium/chromedriver /opt/selenium/chromedriver-${CHROME_DRIVER_VERSION}
67 sudo chmod 755 /opt/selenium/chromedriver-${CHROME_DRIVER_VERSION}
68 sudo ln -fs /opt/selenium/chromedriver-${CHROME_DRIVER_VERSION} /usr/bin/chromedriver
71 sudo rm -rf /var/lib/apt/lists/*