-
Notifications
You must be signed in to change notification settings - Fork 106
/
Dockerfile.ubuntu
79 lines (66 loc) · 1.97 KB
/
Dockerfile.ubuntu
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
#
# USE UBUNTU 18.10
#
FROM ubuntu:18.10
MAINTAINER Gregor von Laszewski <[email protected]>
#
# DEVELOPMENT TOOLS
#
RUN apt-get update -y
RUN apt-get install graphviz -y
RUN apt-get install python-pip -y
RUN apt-get install wget -y
RUN apt-get install curl -y
RUN apt-get install rsync -y
RUN pip install pip -U
RUN apt-get install git-core -y
RUN apt-get install dnsutils -y
RUN apt-get install -y build-essential libssl-dev libffi-dev
#
# INSTALL PYTHON 3.7.1
#
RUN apt-get install -y python3.7
RUN apt-get install -y python3-pip
RUN pip install --upgrade pip setuptools
RUN pip3 install --upgrade pip setuptools
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 10
RUN update-alternatives --config python
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
RUN update-alternatives --config pip
RUN yes '' | update-alternatives --force --all
#
# INSTALL PANDOC
#
RUN apt-get install haskell-platform -y
RUN wget -qO- https://get.haskellstack.org/ | sh
RUN cabal update
RUN stack setup
ENV PATH="$HOME/root/.local/bin:$HOME/.cabal/bin:${PATH}"
ENV SOFTWARE=pandoc-2.7.3
RUN cd $HOME
RUN wget http://hackage.haskell.org/package/${SOFTWARE}/${SOFTWARE}.tar.gz
RUN tar xvzf ${SOFTWARE}.tar.gz
RUN cd ${SOFTWARE}
#RUN stack init
#RUN stack install
#ENV SOFTWARE=pandoc-citeproc-0.16.2
#RUN cd $HOME
#RUN wget http://hackage.haskell.org/package/${SOFTWARE}/${SOFTWARE}.tar.gz
#RUN tar xvzf ${SOFTWARE}.tar.gz
#RUN cd ${SOFTWARE}
#RUN stack init
#RUN stack install
#ENV SOFTWARE=pandoc-crossref-0.3.4.1
#RUN cd $HOME
#RUN wget http://hackage.haskell.org/package/${SOFTWARE}/${SOFTWARE}.tar.gz
#RUN tar xvzf ${SOFTWARE}.tar.gz
#RUN cd ${SOFTWARE}
#RUN stack init
#RUN stack install
#RUN cabal install pandoc-crossref
#RUN cabal install pandoc-citeproc
# RUN pip install pandoc-fignos
#RUN apt-get install -y python3-dev
#RUN apt-get install -y python3-venv
# RUN git clone https://github.com/cloudmesh-community/book.git
# RUN cd book; pip install -r requirements.txt