forked from h2oai/wave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (44 loc) · 1.38 KB
/
Dockerfile
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
50
51
52
53
54
55
56
57
58
FROM golang:1.13
ENV DEBIAN_FRONTEND=noninteractive
# This needs to be set up from Jenkins
# Docker needs to know user and group of a standard user to set it up for Jenkins
ARG uid
ARG gid
RUN apt-get -q -y update
RUN apt-get install -y python3 python3-pip python3-venv make wget xz-utils
WORKDIR /nodejs
RUN wget https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x64.tar.xz
RUN tar xf node-v14.4.0-linux-x64.tar.xz
ENV PATH="/nodejs/node-v14.4.0-linux-x64/bin:${PATH}"
RUN echo 'PATH="/nodejs/node-v14.4.0-linux-x64/bin:${PATH}"' >> /etc/profile.d/nodejs.sh
# # Install chromium
RUN apt-get -y --no-install-recommends --fix-missing install \
chromium
# Cypress deps
RUN apt-get -y --no-install-recommends install \
xvfb \
libgtk-3-dev \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2
# Install s3cmd (couldn't install it from apt-get)
RUN pip3 install s3cmd
# NodeJS required directory
RUN mkdir /.npm && \
chown $uid:$gid /.npm
# Cypress required directory (...and some other packages later too)
# https://github.com/cypress-io/cypress/issues/819
RUN mkdir /.cache /.config && \
chown $uid:$gid /.cache /.config
RUN echo ". /wave/py/venv/bin/activate" >> /etc/profile.d/venv.sh
COPY . /wave
RUN chown -R ${uid} /wave
USER ${uid}
WORKDIR /wave/test
RUN npm i
RUN mkdir -p /wave/test/cypress/integration
WORKDIR /wave
RUN make all
WORKDIR /app