Help us understand the problem. What is going on with this article?

GAP.jl のDockerでの導入

本日は

最近はMacで作業・お仕事をしています.数学の話をJulia上で展開したいなーというお気持ちがあるので

OSCARシリーズのSingular.jlとかGAP.jlとか入れてみたいよねという気持ちが出てきました.
今回は GAP.jl の導入メモです.Singular.jlさんDockerでも入らないので絶望しています.

Dockerfileを作る

ここではDockerが既に導入されていると仮定します.ここなどをみてDockerを入れてください

FROM julia:1.1.1

RUN apt-get update && apt-get install -y \
    autoconf \
    autogen \
    build-essential \
    cmake \
    cmake-data \
    gfortran \
    libblas-dev \
    liblapack-dev \
    libgmp-dev \
    libmpfr-dev \
    git

RUN julia -e 'using Pkg; Pkg.add("GAP"); using GAP'

上記のDockerfileができたとします.依存パッケージはGAP.jlのtravisの設定ファイルなどから拝借しています.

イメージを作る

$ ls
Dockerfile
$ docker build -t jlgap .
# しばらく待つとイメージが生成

動かし方

$ docker run --rm -it jlgap julia

下記のようになればOKです.

image.png

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away