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?

More than 5 years have passed since last update.

screwdriverをローカル環境で実行してみる

Last updated at Posted at 2018-09-15

環境

  • macOS High Sierra 10.13.6

Docker CE for Macのインストール

以下よりインストーラーをダウンロードし、インストールを行う。
※インストーラーをダウンロードするには、Docker IDの作成 & Sign inしておかなければいけないっぽい。
https://store.docker.com/editions/community/docker-ce-desktop-mac

Docker Engineや、Docker Composeも含まれている。
スクリーンショット 2018-09-15 12.01.57.png

起動

screwdriver公式サイトには以下のコマンドを実行と記載があったが、
実際に実行してみるとエラーとなってしまった。

NG
$ python <(curl https://raw.githubusercontent.com/screwdriver-cd/screwdriver/master/in-a-box.py)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    15  100    15    0     0    185      0 --:--:-- --:--:-- --:--:--   187
  File "/dev/fd/63", line 1
    404: Not Found
       ^
SyntaxError: invalid syntax

実行ログの画像イメージには違うコマンドが記載されていたので、それを実行してみたら起動した。

OK
$ python <(curl -L https://git.io/screwdriver-box)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  9091  100  9091    0     0   8165      0  0:00:01  0:00:01 --:--:--  8165
🎁   Boxing up Screwdriver
👀   Checking prerequisites
🔐   Generating signing secrets
📤   Which SCM provider would you like to use? (github/gitlab/bitbucket) github
📦   Generating OAuth credentials

    Please create a new OAuth application on GitHub.com
    Go to https://github.com/settings/applications/new to start the process
    For 'Homepage URL' put http://192.168.5.201:9000
    For 'Authorization callback URL' put http://192.168.5.201:9001/v4/auth/login
    
    When done, please provide the following values:
    
    Client ID: khoriguc
    Client Secret: 

💾   Writing Docker Compose file
🚀   Screwdriver is ready to launch!

    Just run the following commands to get started!
      $ docker-compose pull
      $ docker-compose -p screwdriver up -d
      $ open http://192.168.5.201:9000
    
    Would you like to run them now? (y/n) y
Pulling api   ... done
Pulling ui    ... done
Pulling store ... done
Creating network "screwdriver_default" with the default driver
Creating screwdriver_api_1   ... done
Creating screwdriver_ui_1    ... done
Creating screwdriver_store_1 ... done

👍   Launched!

    A few more things to note:
      - To stop/reset Screwdriver
        $ docker-compose -p screwdriver down
      - If your internal IP changes, update the docker-compose.yml and your SCM OAuth application
      - In-a-box does not support Webhooks including PullRequests for triggering builds
      - To create your own cluster, see https://docs.screwdriver.cd/cluster-management/kubernetes
      - For help with this and more, find us on Slack at https://slack.screwdriver.cd

❤️   Screwdriver Crew

ブラウザが自動的に立ち上がった。
スクリーンショット 2018-09-15 12.09.06.png

終了

$ docker-compose -p screwdriver down
Stopping screwdriver_api_1   ... done
Stopping screwdriver_ui_1    ... done
Stopping screwdriver_store_1 ... done
Removing screwdriver_api_1   ... done
Removing screwdriver_ui_1    ... done
Removing screwdriver_store_1 ... done
Removing network screwdriver_default

参考

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?