-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (53 loc) · 1.53 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
59
FROM ubuntu:bionic
LABEL maintainer="Lee Jones <[email protected]> (@lag-linaro)"
# Install 'tzdata' seperately to avoid forced user interaction
RUN set -x && \
apt update && \
apt install -y --no-install-recommends \
tzdata
# Install pre-requisites
RUN set -x && \
apt update && \
apt install -y --no-install-recommends \
build-essential \
pkg-config \
git \
ca-certificates \
devscripts \
debhelper \
libffi-dev \
libnspr4-dev \
wget \
zip \
pkg-kde-tools \
python \
python-pip \
python-sphinx \
erlang \
erlang-reltool \
libicu-dev \
libcurl4-openssl-dev \
npm
# Install the Sphinx RTC Theme package
RUN pip install sphinx_rtd_theme
# Create and `cd` into build directory
ENV BUILDDIR couchdb-build
RUN mkdir ${BUILDDIR}
# Pull and configure CouchDB
RUN set -x && \
cd ${BUILDDIR} && \
git clone https://github.com/apache/couchdb.git && \
cd couchdb && \
./configure -c && \
mv bin/rebar bin/rebar-orig && \
wget https://github.com/rebar/rebar/wiki/rebar -O bin/rebar && \
chmod +x bin/rebar && \
cd ..
# Pull CouchDB Packaging and build/install Spider Monkey dependency
RUN set -x && \
cd ${BUILDDIR} && \
git clone https://github.com/apache/couchdb-pkg.git && \
cd couchdb-pkg && \
make couch-js-debs && \
dpkg -i js/couch-libmozjs185-*.deb && \
make build-couch $(lsb_release -cs) PLATFORM=$(lsb_release -cs)