Open sataga opened 4 years ago
起動コマンド
t-sataga@MBA ~/tutorial/screwdriver/quickstart-generic master
-> % python <(curl -L https://git.io/sd-in-a-box) 23:53:28 - 23:53:32
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 9392 100 9392 0 0 3516 0 0:00:02 0:00:02 --:--:-- 3516
🎁 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.3.20:9000
For 'Authorization callback URL' put http://192.168.3.20:9001/v4/auth/login
When done, please provide the following values:
Client ID: sataga
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.3.20: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_ui_1 ... done
Creating screwdriver_store_1 ... done
Creating screwdriver_api_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
t-sataga@MBA ~/tutorial/screwdriver/quickstart-generic master
いつもの画面だ
cloneしたリポジトリが動くかを確認してみる
Singn in with github するとNot Foundになるぅ
調べると、user , secret はoauth appで登録した内容を入れるべきな模様。
パラメータで悩んでいたが、書いてあった
For 'Authorization callback URL' put http://192.168.3.20:9001/v4/auth/login
登録実施 https://github.com/settings/applications/1259224
登録後にclientID と secret が表示されていることを確認。これを使うのですね!
うーん。ログイン失敗
down -> up -> open http://192.168.3.20:9000
したら、認証画面がきた!
ダッシュボードひらけた! http://192.168.3.20:9000/dashboards/1
パイプライン作成もできた!
めっちゃ重い・・・・
10分たっても微動だにしないので、StopしてCommitする -> うんともすんとも動かない。。。
⬇️ ソースコードもらったものの、実行環境がない。
⬇️ローカルで実行できるというものを試してみる。その上で、gitfeeder対応をやれるようにしたみ。
参考