forked from mozilla-services/mozilla-pipeline-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (41 loc) · 1.09 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
FROM centos:centos8.1.1911
LABEL maintainer="Firefox Data Platform"
# Install the appropriate software
RUN dnf -y update && \
dnf -y install epel-release && \
dnf -y install \
cmake3 \
diffutils \
gcc \
gcc-c++ \
jq \
make \
which \
wget \
git \
python36 \
java-1.8.0-openjdk-devel \
maven \
cargo \
&& dnf clean all
# Install jsonschema-transpiler
ENV PATH=$PATH:/root/.cargo/bin
RUN cargo install jsonschema-transpiler --version 1.8.0
# Configure git for testing
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "Mozilla Pipeline Schemas"
WORKDIR /app
# Install python dependencies
COPY requirements.txt requirements-dev.txt ./
RUN pip3 install --upgrade pip setuptools && \
pip3 install -r requirements.txt -r requirements-dev.txt
# Install Java dependencies
COPY pom.xml .
RUN mvn dependency:copy-dependencies
COPY . /app
RUN pip3 install .
RUN mkdir release && \
cd release && \
cmake .. && \
make
CMD pytest -v