Waypoint (HashiCorp)
使い方
code:shell
$ brew install hashicorp/tap/waypoint
Updating Homebrew...
==> Tapping hashicorp/tap
Cloning into '/usr/local/Homebrew/Library/Taps/hashicorp/homebrew-tap'...
remote: Enumerating objects: 181, done.
remote: Counting objects: 100% (181/181), done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 590 (delta 92), reused 158 (delta 76), pack-reused 409
Receiving objects: 100% (590/590), 114.41 KiB | 324.00 KiB/s, done.
Resolving deltas: 100% (259/259), done.
Tapped 8 formulae (44 files, 193.3KB).
==> Installing waypoint from hashicorp/tap
######################################################################## 100.0%
🍺 /usr/local/Cellar/waypoint/0.1.3: 3 files, 133.6MB, built in 4 seconds
$ waypoint install -platform=docker -accept-tos
✓ Installing Waypoint server to docker
✓ Server container started!
✓ Configuring server...
Waypoint server successfully installed and configured!
The CLI has been configured to connect to the server automatically. This
connection information is saved in the CLI context named "install-1603225154".
Use the "waypoint context" CLI to manage CLI contexts.
The server has been configured to advertise the following address for
entrypoint communications. This must be a reachable address for all your
deployments. If this is incorrect, manually set it using the CLI command
"waypoint server config-set".
Advertise Address: waypoint-server:9701
指示されたとおりにURLにアクセスすると Waypoint の画面が出る。
(証明書のエラーが出るが、そこは無視してアクセスした)
https://gyazo.com/aacdd6f8c227313bab02c2ad04bf79b0
指示されているとおりにトークンを発行して画面にコピペする。
code:shell
$ waypoint token new
bM152PW.........................ceLs7vXWLG
プロジェクトないぞ、って言われるので、指定のコマンドを実行。
https://gyazo.com/1fd054b74177b7fcddf38075d562a813
なんか2回やらないとプロジェクトが作られないみたい。(メッセージにも出ている)
code:shell
$ waypoint init
Initial Waypoint configuration created!
No Waypoint configuration was found in this directory.
A sample configuration has been created in the file "waypoint.hcl". This
file is heavily commented to help you get started.
Once you've setup your initial configuration, run "waypoint init" again to
validate the configuration and initialize your project.
$ waypoint init
✓ Configuration file appears valid
✓ Connection to Waypoint server was successful
✓ Project "my-project" and all apps are registered with the server.
✓ Plugins loaded and configured successfully
✓ Authentication requirements appear satisfied.
Project initialized!
You may now call 'waypoint up' to deploy your project or
commands such as 'waypoint build' to perform steps individually.
my-project というプロジェクトが追加された。
https://gyazo.com/b3181e76a03395cb55637b8e5b31aba6
Link
HashiCorp「Waypoint」発表。環境やプラットフォームの違いを吸収してコマンド一発でビルド、デプロイ、リリースを実行 - Publickey
Getting Started with Waypoint | Waypoint by HashiCorp
Hashicorp の新しいCD ツール "Waypoint" を試してみる - y-ohgi's blog