forked from hltcoe/concrete-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (35 loc) · 1.61 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
FROM charman/docker-node-chrome-thrift:latest
# To minimize Docker build time, the steps for installing Chrome and
# building the Thrift compiler (which are commented out below) have
# been moved into the (automatically built) Docker image:
# charman/docker-node-chrome-thrift:latest
####
# FROM node:latest
# # OPTIONAL: Install dumb-init (Very handy for easier signal handling of SIGINT/SIGTERM/SIGKILL etc.)
# RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb
# RUN dpkg -i dumb-init_*.deb
# ENTRYPOINT ["dumb-init"]
# # Install Google Chrome
# RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
# RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# RUN apt-get update && apt install -y ./google-chrome-stable_current_amd64.deb
# RUN apt-get install -y libboost-dev
# # Install Thrift
# WORKDIR /opt/thrift
# RUN wget http://mirror.cc.columbia.edu/pub/software/apache/thrift/0.12.0/thrift-0.12.0.tar.gz && \
# tar xvfz thrift-0.12.0.tar.gz
# WORKDIR /opt/thrift/thrift-0.12.0
# RUN ./configure --with-js --without-nodejs --without-c_glib --without-cpp --without-python --without-py3 && \
# make && \
# make install
###
RUN git clone https://github.com/hltcoe/concrete /opt/concrete
WORKDIR /opt/concrete-js
ADD . /opt/concrete-js
# Force git to use https to work around JHU firewall settings,
RUN git config --global url."https://github.com/".insteadOf [email protected]:
RUN git config --global url."https://".insteadOf git://
RUN npm install
RUN npx grunt shell:DownloadThriftJS
RUN npx grunt
RUN npm run test