easy-to-study / tips

1 stars 0 forks source link

screwdriverのクイックスタートをやってみる #13

Open sataga opened 4 years ago

sataga commented 4 years ago

⬇️ ソースコードもらったものの、実行環境がない。

⬇️ローカルで実行できるというものを試してみる。その上で、gitfeeder対応をやれるようにしたみ。

参考

sataga commented 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 
sataga commented 4 years ago

いつもの画面だ image

sataga commented 4 years ago

cloneしたリポジトリが動くかを確認してみる

sataga commented 4 years ago

Singn in with github するとNot Foundになるぅ

sataga commented 4 years ago

調べると、user , secret はoauth appで登録した内容を入れるべきな模様。

sataga commented 4 years ago

パラメータで悩んでいたが、書いてあった

For 'Authorization callback URL' put http://192.168.3.20:9001/v4/auth/login
sataga commented 4 years ago

登録実施 image https://github.com/settings/applications/1259224

登録後にclientID と secret が表示されていることを確認。これを使うのですね!

sataga commented 4 years ago

うーん。ログイン失敗 image

sataga commented 4 years ago

down -> up -> open http://192.168.3.20:9000したら、認証画面がきた! image

sataga commented 4 years ago

ダッシュボードひらけた! http://192.168.3.20:9000/dashboards/1

sataga commented 4 years ago

パイプライン作成もできた! image

sataga commented 4 years ago

めっちゃ重い・・・・

sataga commented 4 years ago

10分たっても微動だにしないので、StopしてCommitする -> うんともすんとも動かない。。。