-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ade4e8
commit d76f825
Showing
1 changed file
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |