-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
32 lines (27 loc) · 1.01 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
FROM gapsystem/gap-docker-base
MAINTAINER The GAP Group <[email protected]>
RUN mkdir /home/gap/inst/ \
&& cd /home/gap/inst/ \
&& wget -q https://github.com/gap-system/gap/archive/stable-4.9.zip \
&& unzip -q stable-4.9.zip \
&& rm stable-4.9.zip \
&& cd gap-stable-4.9 \
&& ./autogen.sh \
&& ./configure \
&& make \
&& cp bin/gap.sh bin/gap \
&& mkdir pkg \
&& cd pkg \
&& wget -q https://www.gap-system.org/pub/gap/gap4pkgs/packages-stable-4.9.tar.gz \
&& tar xzf packages-stable-4.9.tar.gz \
&& rm packages-stable-4.9.tar.gz \
&& ../bin/BuildPackages.sh \
&& test='JupyterKernel-*' \
&& mv ${test} JupyterKernel \
&& cd JupyterKernel \
&& python3 setup.py install --user
RUN jupyter serverextension enable --py jupyterlab --user
ENV PATH /home/gap/inst/gap-stable-4.9/pkg/JupyterKernel/bin:${PATH}
ENV JUPYTER_GAP_EXECUTABLE /home/gap/inst/gap-stable-4.9/bin/gap.sh
ENV GAP_HOME /home/gap/inst/gap-stable-4.9
ENV PATH ${GAP_HOME}/bin:${PATH}