blob: 64e8f27bede75f3b3dc81521aec9ef32b4134aa4 [file] [log] [blame]
garciadeblasbc50b792020-01-28 12:05:08 +01001# 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
magnussonl31181aa2020-11-25 09:04:51 +010016FROM ubuntu:18.04
garciadeblasbc50b792020-01-28 12:05:08 +010017
magnussonl2b0e2d72020-02-04 10:52:46 +010018RUN 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
23ADD https://github.com/MiniZinc/MiniZincIDE/releases/download/2.4.2/MiniZincIDE-2.4.2-bundle-linux-x86_64.tgz /minizinc.tgz
24
25RUN tar -zxf /minizinc.tgz && \
26 mv /MiniZincIDE-2.4.2-bundle-linux /minizinc
27
28RUN mkdir /entry_data \
29 && mkdir /entry_data/mzn-lib \
30 && ln -s /entry_data/mzn-lib /minizinc/share/minizinc/exec
31
32ENV FZNEXEC "/entry_data/fzn-exec"
33ENV PATH "/minizinc/bin:${PATH}"
34
35RUN mkdir /placement
36COPY ./osm_pla/test/pil_price_list.yaml /placement/.
37COPY ./osm_pla/test/vnf_price_list.yaml /placement/.