Initial commit to gerrit repo
[osm/PLA.git] / Dockerfile
1 # Copyright 2020 ETSI
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #    http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 FROM ubuntu:16.04
17
18 RUN apt-get update && \
19     DEBIAN_FRONTEND=noninteractive apt-get -y install git tox make python3 python3-pip python-all && \
20     DEBIAN_FRONTEND=noninteractive apt-get -y install python3-all debhelper python3-setuptools apt-utils libgl1-mesa-glx && \
21     DEBIAN_FRONTEND=noninteractive pip3 install -U setuptools setuptools-version-command stdeb
22
23 ADD https://github.com/MiniZinc/MiniZincIDE/releases/download/2.4.2/MiniZincIDE-2.4.2-bundle-linux-x86_64.tgz /minizinc.tgz
24
25 RUN tar -zxf /minizinc.tgz && \
26     mv /MiniZincIDE-2.4.2-bundle-linux /minizinc
27
28 RUN mkdir /entry_data \
29     && mkdir /entry_data/mzn-lib \
30     && ln -s /entry_data/mzn-lib /minizinc/share/minizinc/exec
31
32 ENV FZNEXEC "/entry_data/fzn-exec"
33 ENV PATH "/minizinc/bin:${PATH}"
34
35 RUN mkdir /placement
36 COPY ./osm_pla/test/pil_price_list.yaml /placement/.
37 COPY ./osm_pla/test/vnf_price_list.yaml /placement/.