-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.interops
More file actions
42 lines (32 loc) · 1.15 KB
/
Dockerfile.interops
File metadata and controls
42 lines (32 loc) · 1.15 KB
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
# Command to build this Dockerfile
# docker build -f Dockerfile -t quay.io/dhuynh/acmqe-automation/clc:clc-centos8-nodejs12 .
FROM quay.io/vboulos/acmqe-automation/centos8-nodejs12
# Copy the CLC repo repo into /tmp/clc folder
RUN mkdir /tmp/clc
WORKDIR /tmp/clc
COPY . .
# point Cypress at the /tmp/cache no matter what user account is used
# see https://on.cypress.io/caching
ENV CYPRESS_CACHE_FOLDER=/tmp/.cache/Cypress
# Install node packages and update browsers list
RUN npm config set unsafe-perm true \
&& npm config set loglevel warn \
&& npm install -g\
&& npm ci \
&& npx browserslist@latest --update-db
RUN npx cypress cache path
RUN npx cypress cache list
RUN echo "node version: $(node -v) \n" \
"npm version: $(npm -v) \n" \
"user: $(whoami) \n" \
"chrome: $(google-chrome --version || true) \n" \
"firefox: $(firefox --version || true) \n"
# Set required permissions for OpenShift usage
RUN chgrp -R 0 /tmp && \
chmod -R g=u /tmp
RUN mkdir -p /.config
RUN chgrp -R 0 /.config && \
chmod -R g=u /.config
# good colors for most applications
ENV TERM=xterm
CMD ["/bin/bash"]