forked from stacs-cp/AutoIG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
65 lines (51 loc) · 1.51 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
60
61
62
63
64
# Use the Conjure base image
FROM ghcr.io/conjure-cp/conjure:main
#Update the package list
RUN apt-get update
#Install necessary packages with frontend=noninteractive to avoid interactive prompts
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
bash \
sudo \
wget \
curl \
gnupg \
software-properties-common \
unzip
#Install necessary python packages
RUN sudo apt-get install -y python3-pip
RUN apt install python3-pandas -y
RUN apt install python3-numpy -y
#Ensure 'python' command points to Python 3
RUN sudo apt install python-is-python3
#Install R base package for irace
RUN sudo apt-get install r-base -y
#Install Git
RUN sudo apt-get install git-all -y
#Set working directory to root
WORKDIR /
#Clone the AutoIG repository from GitHub
RUN git clone https://github.com/stacs-cp/AutoIG.git
#Move conjure into the AUtoIG bin directory
RUN mv conjure AutoIG/bin
#Set the working directory
WORKDIR /AutoIG
#Run installation scripts for tools used by AutoIG
# Install Savile Row
RUN bash bin/install-savilerow.sh
# Install Minizinc
RUN bash bin/install-mininzinc.sh
# Install irace
RUN bash bin/install-irace.sh
# Install RunSolver
RUN bash bin/install-runsolver.sh
# Install OR-Tools
RUN bash bin/install-ortools.sh
# Install Yuck
RUN bash bin/install-yuck.sh
# Install Picat
RUN bash bin/install-picat.sh
# remove minizinc in the base conjure image
RUN rm /root/.local/bin/minizinc
RUN rm /root/.local/bin/fzn-chuffed
RUN rm /root/.local/bin/fzn-cp-sat
RUN rm -rf /root/.local/bin/share