📏
pari/gp on dokcer container
pari/gpをdocker container上で動作させたので覚書です。
Dockerfile
FROM archlinux
RUN pacman -Syu --noconfirm
RUN pacman -Sy base-devel --noconfirm
RUN pacman -S gdb --noconfirm
RUN pacman -S pari --noconfirm
RUN pacman -S git --noconfirm
RUN pacman -S wget --noconfirm
RUN wget http://pari.math.u-bordeaux.fr/pub/pari/GP2C/gp2c-0.0.13.tar.gz
RUN tar -zxvf gp2c-0.0.13.tar.gz
RUN rm -rf gp2c-0.0.13.tar.gz
RUN cd gp2c-0.0.13 && \
ln -s .../lib/pari/pari.cfg pari.cfg && \
./configure && \
make install
docker-compose.yaml
services:
pari-gp:
build:
context: .
tty: true
volumes:
- ./work:/root
working_dir: /root
Discussion