Skip to content

Commit

Permalink
Updating dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mbradleySoftrams authored Dec 16, 2024
1 parent 4ade4e8 commit d76f825
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,41 @@
FROM public.ecr.aws/docker/library/python:3.11.6-alpine
RUN pip install boto3 awscli
# Building the image
# docker build -t gauge-taiko .
# Running the image
# docker run --rm -it -v ${PWD}/reports:/gauge/reports gauge-taiko

# This image uses the official node base image.
FROM artifactory.cloud.cms.gov/docker/node:18

# The Taiko installation downloads and installs the chromium required to run the tests.
# However, we need the chromium dependencies installed in the environment. These days, most
# Dockerfiles just install chrome to get the dependencies.
RUN apt-get update \
&& apt-get install -y wget gnupg ca-certificates vim \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable \
&& apt-get install -y unzip

# Install Oracle Client
RUN mkdir -p /opt/oracle && \
cd /opt/oracle && \
wget https://download.oracle.com/otn_software/linux/instantclient/214000/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip && \
unzip instantclient-basic-linux.x64-21.4.0.0.0dbru.zip && \
apt-get install -y libaio1 && \
sh -c "echo /opt/oracle/instantclient_21_4 > /etc/ld.so.conf.d/oracle-instantclient.conf" && \
ldconfig

# Commented out to verify if needed
# RUN cp /usr/share/zoneinfo/America/New_York /etc/localtime

# Set a custom npm install location so that Gauge, Taiko and dependencies can be
# installed without root privileges
ENV NPM_CONFIG_PREFIX=/home/gauge/.npm-packages
ENV PATH="${NPM_CONFIG_PREFIX}/bin:${PATH}"
# ENV ENV_ARGS = "--verbose"

# Add the Taiko browser arguments
ENV TAIKO_BROWSER_ARGS=--no-sandbox,--start-maximized,--disable-dev-shm-usage
ENV headless_chrome=true
ENV TAIKO_SKIP_DOCUMENTATION=true

0 comments on commit d76f825

Please sign in to comment.