LoginSignup
0
0

More than 3 years have passed since last update.

circleCIの公開imageをローカルで起動する

Last updated at Posted at 2020-10-01

公開イメージについて

こちらのcircleCIのサイトに詳細が記載されています。
https://circleci.com/docs/2.0/circleci-images/

CI/CDで使用しているcircleCIの公開docker imageを変更したいが、
事前にローカルで動作確認しておきたい場合などに使用しています。

imagaのダウンロード

ダウンロードできるimaga一覧は↓から確認が可能です。
https://circleci.com/docs/2.0/docker-image-tags.json
ダウンロード対象が決まったらdockerコマンドでダウンロードしましょう。

python3.6をDLしたい場合
"python": {
    "name": "Python",
    "tags": [
        ・
        ・
        "3.6"★
        ・
        ・
例
# docker pull circleci/python:3.6

docker hubのサイトでも対象のimagaeの一覧が見れますが、
これがまた検索しづらい・・・。

imageがダウンロードされた事を確認

# docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
circleci/python     3.6                 eb893dc1e857        37 hours ago        1.38GB

コンテナの作成

コンテナ作成と起動
# docker run -it eb893dc1e857 /bin/bash

このイメージをベースにオリジナルのimageを作成してcircleCIを
動かす事でより快適にCI/CD運用ができると思います。

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