-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
36 lines (28 loc) · 1.14 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
FROM gapsystem/gap-docker-base
MAINTAINER The GAP Group <[email protected]>
ENV GAP_BRANCH=stable-4.10
# download and build GAP
RUN mkdir /home/gap/inst/ \
&& cd /home/gap/inst/ \
&& git clone --depth=1 -b ${GAP_BRANCH} https://github.com/gap-system/gap gap-${GAP_BRANCH} \
&& cd gap-${GAP_BRANCH} \
&& ./autogen.sh \
&& ./configure \
&& make \
&& cp bin/gap.sh bin/gap
# download and build GAP packages
RUN mkdir /home/gap/inst/gap-${GAP_BRANCH}/pkg \
&& cd /home/gap/inst/gap-${GAP_BRANCH}/pkg \
&& wget -q https://files.gap-system.org/gap4pkgs/packages-${GAP_BRANCH}.tar.gz \
&& tar xzf packages-${GAP_BRANCH}.tar.gz \
&& ../bin/BuildPackages.sh
# build JupyterKernel
RUN cd /home/gap/inst/gap-${GAP_BRANCH}/pkg \
&& mv JupyterKernel-* JupyterKernel \
&& cd JupyterKernel \
&& python3 setup.py install --user
RUN jupyter serverextension enable --py jupyterlab --user
ENV PATH /home/gap/inst/gap-${GAP_BRANCH}/pkg/JupyterKernel/bin:${PATH}
ENV JUPYTER_GAP_EXECUTABLE /home/gap/inst/gap-${GAP_BRANCH}/bin/gap.sh
ENV GAP_HOME /home/gap/inst/gap-${GAP_BRANCH}
ENV PATH ${GAP_HOME}/bin:${PATH}