blob: e3e66cfefe1e9e774f1412f860948af0a1d9d527 [file] [log] [blame]
garciadeblasbc50b792020-01-28 12:05:08 +01001# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10# implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
beierlm6e06e752021-02-16 16:52:29 -050013########################################################################################
14# This Dockerfile is intented for devops testing and deb package generation
15#
16# To run stage 2 locally:
17#
18# docker build -t stage2 .
19# docker run -ti -v `pwd`:/work -w /work --entrypoint /bin/bash stage2
20# devops-stages/stage-test.sh
21# devops-stages/stage-build.sh
22#
garciadeblasbc50b792020-01-28 12:05:08 +010023
Mark Beierl7cedba12023-05-10 21:35:27 -040024FROM ubuntu:22.04
beierlmc48a5e42022-01-13 13:12:46 -050025
26ARG APT_PROXY
27RUN if [ ! -z $APT_PROXY ] ; then \
28 echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;\
29 echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;\
30 fi
garciadeblasbc50b792020-01-28 12:05:08 +010031
beierlm6e06e752021-02-16 16:52:29 -050032RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
33 DEBIAN_FRONTEND=noninteractive apt-get -y install \
34 debhelper \
beierlmc48a5e42022-01-13 13:12:46 -050035 dh-python \
beierlm6e06e752021-02-16 16:52:29 -050036 git \
37 python3 \
38 python3-all \
39 python3-dev \
Mark Beierl7cedba12023-05-10 21:35:27 -040040 python3-setuptools \
41 python3-pip \
42 tox
beierlm6e06e752021-02-16 16:52:29 -050043
Mark Beierl7cedba12023-05-10 21:35:27 -040044ENV LC_ALL C.UTF-8
45ENV LANG C.UTF-8
magnussonl2b0e2d72020-02-04 10:52:46 +010046
47ADD https://github.com/MiniZinc/MiniZincIDE/releases/download/2.4.2/MiniZincIDE-2.4.2-bundle-linux-x86_64.tgz /minizinc.tgz
48
49RUN tar -zxf /minizinc.tgz && \
50 mv /MiniZincIDE-2.4.2-bundle-linux /minizinc
51
52RUN mkdir /entry_data \
53 && mkdir /entry_data/mzn-lib \
54 && ln -s /entry_data/mzn-lib /minizinc/share/minizinc/exec
55
56ENV FZNEXEC "/entry_data/fzn-exec"
57ENV PATH "/minizinc/bin:${PATH}"