0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Dockerで使う研究ツール

Posted at

Gnuplot

FROM alpine
RUN apk update && apk upgrade
RUN apk add --update gnuplot fontconfig msttcorefonts-installer
RUN update-ms-fonts
RUN fc-cache -f
RUN rm -rf /var/cache/apk/*
docker build -t gnuplot -f ~/Dropbox/settings/docker/Dockerfile-gnuplot ~/Dropbox/settings/docker    
cd プロットファイルの場所
docker run --rm -it -v "$(pwd):/temp" gnuplot sh -c "cd /temp;gnuplot ファイル名.plt;exit"

pdfをpngに変換

FROM alpine
RUN apk update && apk upgrade
RUN apk add --update poppler-utils
docker run --rm -it -v $(pwd):/temp poppler sh -c 'cd /temp; pdftoppm -r 150 -png Fig1.pdf image; mv image-1.png Fig1.png ;exit'

latexをtextに変換

docker run --rm --volume "$(pwd):/data" --user $(id -u):$(id -g) pandoc/core ファイル名.tex -o ファイル名.txt

ウェブサイト生成

FROM ruby

RUN gem install nanoc kramdown
WORKDIR /temp
cd サイトのデータが有る場所
docker run --rm -it -v "$(pwd):/temp" nanoc bash -c "cd /temp;nanoc;exit"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?