Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ FROM rofrano/nyu-devops-base:sp23
# This build image needs to be root
USER root

# Install Selenium, Chrome and Firefox
RUN apt-get update && \
apt-get install -y chromium-driver python3-selenium
apt-get install -y --no-install-recommends ca-certificates chromium-driver firefox-esr python3-selenium

WORKDIR /app
# Install platform specific tools
COPY install-tools.sh /tmp/
RUN cd /tmp && bash ./install-tools.sh

WORKDIR /app
CMD ["/bin/bash"]
18 changes: 18 additions & 0 deletions install-tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
######################################################################
# This script installs tools that are platform specific
######################################################################

echo "**********************************************************************"
echo "Installing Gecko Driver..."
echo "**********************************************************************"

if [ $(uname -m) == aarch64 ]; then
echo "ARM64 platform detected."
wget -qO - https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-linux-aarch64.tar.gz | tar xz
else
echo "x86_64 platform detected."
wget -qO - https://github.com/mozilla/geckodriver/releases/download/v0.33.0/geckodriver-v0.33.0-linux64.tar.gz | tar xz
fi;
sudo install geckodriver /usr/bin/
rm geckodriver