Friday 2 February 2024

podman and singularity

githubは、packageの配布もできるんだけど、Dockerですか? homebrew は容易してあるんですけどね

singularity の sif image から Docker image を podman で作るという方法を試してみる

 singularity build --sandbox cbcdsand/ cbclang.sif

で書き出して、 Dockerfile

  FROM scratch
  COPY cbcdsand/ /

それを使って

 podman build -t cbclang .

なるほど。ところがぜんぜん終わらない

User mode podman が遅いのはそうなんだが、それにしても。で、ChatGPTと話しながら..

 podman info

で、~/.local/share/containers/storage を使っているらしく。そこ Ceph だから。

それは無理。いったい何重に file system 重ねてるんだよ。で、

  [storage]
  driver = "overlay"
  graphroot = "/mnt/hogehoge"

で、切り替える。これで、まぁ、10分くらい、で、

  podman run -it -v $HOME:/root cbclang /bin/zsh

一応、動いた。image size は15GB。llvm x 2 なので、もう少しは削れるとは思うけど...

あぁ、やっぱり、singularity に比べるといろいろだめね。User mode で使うなら singularity の方が合理的ね

なので、github packageも .sif をあげられるようになると良いかも

No comments: