CircleCIではDockerHubにあるコンテナは使用可能
ただし、CircleCIでmachineなどのオプションを使っているとその中身を知りたいときがある
machineではcircleci/classic
を使っているらしいがDockerhubを探しても見つからない
machine
- https://circleci.com/docs/2.0/executor-types/#using-machine
プロビジョニング用のスクリプト
CircleCIではスクリプトを使ってコンテナ別にパッケージをインストール
例えばPythonではpyenvを使っている
machineで使われているスクリプト
以下のURLの先のSee the picard-vm-image branch of our image-builder repository for details.
がそれに当たるらしい
- https://circleci.com/docs/2.0/vm-service/#configuration
picard-vm-imageのブランチ
- https://github.com/circleci/image-builder/tree/picard-vm-image/circleci-provision-scripts
ちなみに、an Ubuntu 14.04 image with Docker version 17.03.0-ce and docker-compose version 1.9.0
らしいので
Ubuntu 14.04のDockerfileも見てみるとRUN sudo -H -i -u ubuntu pyenv global 2.7.11
となっている・・・
もし、3系を使いたい場合はDockerコンテナ内で pyenv global 3.X.XX
とすればOK