forked from mirage/mirage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.doc
161 lines (161 loc) · 3.21 KB
/
Dockerfile.doc
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
FROM ocaml/opam:ubuntu-16.04_ocaml-4.03.0
RUN cd /home/opam/opam-repository && git pull origin master && opam update
RUN opam remote add mirage-dev https://github.com/mirage/mirage-dev.git
RUN opam pin add -n odig https://github.com/dbuenzli/odig.git
RUN opam depext -uivy -j 2 odig
RUN opam depext -uivj 3 \
alcotest \
angstrom \
ansi-parse \
anycache \
arp \
asn1-combinators \
astring \
atd \
atdgen \
base \
base64 \
charrua-core \
charrua-unix \
cmdliner \
cohttp \
conduit \
core_kernel \
cow \
cowabloga \
cpuid \
crunch \
cstruct \
ctypes \
ctypes-foreign \
depyt \
dns \
dockerfile \
duration \
ezjsonm \
ezxmlm \
fat-filesystem \
functoria \
git \
git-mirage \
git-unix \
github \
gmp-freestanding \
hex \
hkdf \
hvsock \
integers \
io-page \
ipaddr \
irc-client \
irmin \
irmin-watcher \
jekyll-format \
jenga \
jsonm \
logs \
logs-syslog \
lru-cache \
lwt \
magic-mime \
merlin \
mirage \
mirage-block \
mirage-block-ccm \
mirage-block-lwt \
mirage-block-ramdisk \
mirage-block-solo5 \
mirage-block-unix \
mirage-block-xen \
mirage-bootvar-solo5 \
mirage-bootvar-xen \
mirage-btrees \
mirage-channel \
mirage-clock-unix \
mirage-clock-freestanding \
mirage-console-solo5 \
mirage-console-unix \
mirage-console-xen \
mirage-console-xen-backend \
mirage-console-xen-cli \
mirage-console-xen-proto \
mirage-device \
mirage-dns \
mirage-entropy \
mirage-flow \
mirage-flow-lwt \
mirage-flow-unix \
mirage-fs-unix \
mirage-http \
mirage-logs \
mirage-net-solo5 \
mirage-net-unix \
mirage-net-xen \
mirage-os-shim \
mirage-random \
mirage-solo5 \
mirage-unix \
mirage-vnetif \
mirage-xen \
nocrypto \
notty \
obytelib \
ocaml-freestanding \
ocamlclean \
ocb-stubblr \
ocplib-endian \
opam-file-format \
opam-lib \
otr \
owl \
parse-argv \
pbkdf \
pcap-format \
ppx_expect \
protocol-9p \
ptime \
re \
randomconv \
rresult \
scrypt-kdf \
session \
shared-memory-ring \
solo5-kernel-virtio \
stdio \
syslog-message \
tcpip \
tls \
tlstunnel \
tyre \
topkg \
topkg-care \
tuntap \
tyxml-ppx \
uri \
uucp \
uuseg \
utop \
vchan \
webbrowser \
webmachine \
websocket \
x509 \
xen-evtchn \
xen-gnt \
xenctrl \
yojson \
xenstore \
zarith-freestanding
# to fix: dns-forward nbd qcow vhd-format datakit-ci tar-format ezirmin datakit
RUN opam config exec -- odig ocamldoc --docdir-href ../_doc
RUN opam pin add -n octavius git://github.com/ocaml-doc/octavius
RUN opam pin add -n doc-ock git://github.com/ocaml-doc/doc-ock
RUN opam pin add -n doc-ock-xml git://github.com/ocaml-doc/doc-ock-xml
RUN opam pin add -n doc-ock-html git://github.com/ocaml-doc/doc-ock-html
RUN opam pin add -n odoc git://github.com/ocaml-doc/odoc
RUN opam depext -uivy -j 2 odoc
RUN opam config exec -- odig odoc --docdir-href _doc
RUN ln -s /home/opam/.opam/4.03.0/var/cache/odig/ocamldoc /home/opam/.opam/4.03.0/var/cache/odig/odoc/_ocamldoc
RUN ln -s /home/opam/.opam/4.03.0/doc /home/opam/.opam/4.03.0/var/cache/odig/odoc/_doc
EXPOSE 8080
ENTRYPOINT opam config exec -- cohttp-server-lwt /home/opam/.opam/4.03.0/var/cache/odig/odoc