-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.test
49 lines (39 loc) · 1.82 KB
/
Dockerfile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This dockerfile is only used during ci/cd to run regression tests following the ci/cd deploy.
FROM ghcr.io/department-of-veterans-affairs/health-apis-docker-octopus/developer-utils:v2 as devchromebase
# Build Args
ARG BUILD_DATE_TIME
ARG BUILD_VERSION
ARG BUILD_NUMBER
ARG BUILD_TOOL
# Static Labels
LABEL org.opencontainers.image.authors="Pivot!" \
org.opencontainers.image.url="https://github.com/department-of-veterans-affairs/lighthouse-saml-proxy/blob/master/Dockerfile.test" \
org.opencontainers.image.documentation="https://github.com/department-of-veterans-affairs/lighthouse-saml-proxy/blob/master/test/regression_tests/README.md" \
org.opencontainers.image.vendor="lighthouse" \
org.opencontainers.image.title="lighthouse-saml-tests" \
org.opencontainers.image.source="https://github.com/department-of-veterans-affairs/lighthouse-saml-proxy" \
org.opencontainers.image.description="SAML Proxy Tests for Lighthouse APIs"
# Install chrome dependencies
USER root
RUN sudo amazon-linux-extras install epel -y
RUN sudo yum install -y chromium
FROM devchromebase as devnodebase
#
# NodeJS 16.x
#
RUN retry yum install https://rpm.nodesource.com/pub_16.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y \
&& retry yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
RUN retry yum install -y -q gcc-c++ make python3 git \
&& retry yum install --assumeyes --quiet tar gzip xz zip unzip
RUN npm install -g [email protected]
FROM devnodebase
USER lhuser
WORKDIR /home/lhuser
COPY --chown=lhuser:lhuser ./test/regression_tests/ .
RUN npm i
ENTRYPOINT ["./entrypoint_test.sh"]
# Dynamic Labels
LABEL org.opencontainers.image.created=${BUILD_DATE_TIME} \
org.opencontainers.image.version=${BUILD_VERSION} \
gov.va.build.number=${BUILD_NUMBER} \
gov.va.build.tool=${BUILD_TOOL}