-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
96 lines (77 loc) · 2.13 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM ubuntu:xenial
RUN apt-get clean && \
apt-get update && \
apt-get install -y \
aptitude \
bzip2 \
ca-certificates \
curl \
git \
less \
make \
mercurial \
python-software-properties \
screen \
software-properties-common \
sudo \
time \
vim \
wget \
xterm
RUN : "build tools" && \
apt-get update && \
apt-get install -y \
binutils \
bsdmainutils \
build-essential \
coreutils \
findutils \
gawk \
libbz2-dev \
libgmp-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline6-dev \
libreadline-dev \
libyaml-dev \
locales \
netcat \
net-tools \
nodejs-legacy \
patchutils \
tar \
zlib1g-dev
# Set the locale - was (and may still be ) necessary for ghcjs-boot to work
# Got this originally here: # http://askubuntu.com/questions/581458/how-to-configure-locales-to-unicode-in-a-docker-ubuntu-14-04-container
#
# 2015-10-25 It seems like ghcjs-boot works without this now but when I
# removed it, vim starting emitting error messages when using plugins
# pathogen and vim2hs together.
#
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN : "adding .local/bin" && \
mkdir -p ~/.local/bin
RUN : "install stack" && \
curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
ENV PATH="/root/.local/bin:${PATH}"
RUN \
stack setup
RUN \
stack --resolver=lts-6.2 setup && \
stack --resolver=lts-6.2 install cabal-install alex happy hscolour hsc2hs
ENV CARNAP_HM=/opt/carnap
RUN \
mkdir -p ${CARNAP_HM} && \
cd ${CARNAP_HM} && \
git clone https://github.com/phlummox/Carnap.git .
WORKDIR ${CARNAP_HM}
RUN \
git checkout 13bc8c1030a6e0ab546ef36bd54b24a99472c3fc
COPY patches/* ./
RUN \
for patch in server-sqlite-fixes Carnap-fixes semigroupoids; do \
git apply $patch; \
done