環境
- 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も含まれている。
起動
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
終了
$ 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
参考