This repository was archived by the owner on Jun 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdockerfile-deps
More file actions
57 lines (48 loc) · 1.45 KB
/
dockerfile-deps
File metadata and controls
57 lines (48 loc) · 1.45 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM ubuntu:trusty
EXPOSE 4000
ENV ES_VERSION 1.7.1
ENV MYSQL_VERSION 5.6
ENV NODE_MODULES /usr/local/lib/node_modules/
ENV ES_BIN /elasticsearch-$ES_VERSION/bin
RUN apt-get -y update && apt-get install -y \
redis-server \
git \
wget \
curl \
unzip \
nodejs \
npm \
default-jre \
libmysqlclient-dev \
libxml2-dev \
libxslt-dev \
libjpeg-dev \
libfreetype6-dev \
libtiff-dev \
libffi-dev \
software-properties-common \
python-dev \
python-pip
# Download ElasticSearch
RUN wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-"${ES_VERSION}".zip && \
unzip elasticsearch-"${ES_VERSION}".zip && \
rm elasticsearch-"${ES_VERSION}".zip
# For the new Nodejs to work
RUN ln -s /usr/bin/nodejs /usr/bin/node
# Configure and install MySQL
RUN { \
echo mysql-community-server mysql-community-server/data-dir select ''; \
echo mysql-community-server mysql-community-server/root-pass password ''; \
echo mysql-community-server mysql-community-server/re-root-pass password ''; \
echo mysql-community-server mysql-community-server/remove-test-db select false; \
} | debconf-set-selections
RUN apt-get install -y mysql-server-"${MYSQL_VERSION}"
# NPM dependencies (installed in /usr/local/bin)
RUN npm update && npm install -g bower less clean-css uglify-js requirejs
# Invenio
RUN mkdir /src && \
cd /src/ && \
git clone --branch=master https://github.com/HEPData/invenio.git && \
cd invenio && \
pip install -e .
ENV CI true