+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+set -o nounset
+set -o errexit
+set -o pipefail
+set -o xtrace
+
+sudo apt-get update
+sudo apt-get install -y --no-install-recommends \
+ apt-transport-https \
+ lsb-release
+
+curl -sSL https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
+sudo add-apt-repository "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
+sudo apt-get update
+set +e && sudo apt-get purge -y google-cloud-sdk lxc-docker && set -e
+sudo apt-get install -y --no-install-recommends \
+ aptitude \
+ ca-certificates \
+ cgroupfs-mount \
+ docker-compose \
+ docker-ce \
+ git \
+ google-chrome-stable \
+ htop \
+ jq \
+ less \
+ lsof \
+ net-tools \
+ python3 \
+ python3-pip \
+ rsync \
+ tmux \
+ unzip \
+ vim
+
+sudo cp -R /etc/alternatives /etc/keep-alternatives
+sudo apt-get install -y --no-install-recommends \
+ openjdk-8-jdk \
+ openjdk-11-jdk
+sudo rm -rf /etc/alternatives
+sudo mv /etc/keep-alternatives /etc/alternatives
+
+docker pull ${GEODE_DOCKER_IMAGE}
+sudo curl -Lo /usr/local/bin/dunit-progress https://github.com/jdeppe-pivotal/progress-util/releases/download/0.2/progress.linux
+sudo chmod +x /usr/local/bin/dunit-progress
+wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip
+sudo sudo rm -rf /opt/selenium/chromedriver
+sudo unzip /tmp/chromedriver_linux64.zip -d /opt/selenium
+rm /tmp/chromedriver_linux64.zip
+sudo mv /opt/selenium/chromedriver /opt/selenium/chromedriver-${CHROME_DRIVER_VERSION}
+sudo chmod 755 /opt/selenium/chromedriver-${CHROME_DRIVER_VERSION}
+sudo ln -fs /opt/selenium/chromedriver-${CHROME_DRIVER_VERSION} /usr/bin/chromedriver
+
+sudo apt-get clean
+sudo rm -rf /var/lib/apt/lists/*