Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document usage with remote runners #5

Open
1 of 2 tasks
thiskevinwang opened this issue Feb 12, 2023 · 2 comments
Open
1 of 2 tasks

Document usage with remote runners #5

thiskevinwang opened this issue Feb 12, 2023 · 2 comments

Comments

@thiskevinwang
Copy link
Owner

Description

There are at least 2 ways to use this plugin with remote runners. Neither are great. At least one works. Documentation is greatly needed.

-platform=docker on EC2

  • See it work once with my own eyes

This requires a custom runner image to be passed to waypoint runner install.
Furthermore, that image needs ...

FROM hashicorp/waypoint:latest
ARG PLUGIN_NAME=waypoint-plugin-nixpacks
COPY ./bin/$PLUGIN_NAME $HOME/.config/waypoint/plugins/$PLUGIN_NAME

waypoint runner agent, on EC2

  • See it work once with my own eyes

In this route, the EC2 machine itself has

  • nixpacks installed
  • The plugin binary present at $HOME/.config/waypoint/plugins/waypoint-plugin-nixpacks
    • Getting the plugin here is currently a highly manual process — git cloning the runner branch of this repo, and cp-ing the committed binary.
  • manually authenticated with Docker hub — this is to test usage with a registry component
@thiskevinwang
Copy link
Owner Author

thiskevinwang commented Feb 12, 2023

TIL: you can use the gh CLI to upload assets to an existing release. This might make fetching from a remote runner ever so slightly easier.

gh release upload v0.1.0-beta.2 ./bin/waypoint-plugin-nixpacks

CleanShot 2023-02-12 at 14 13 05@2x

@thiskevinwang
Copy link
Owner Author

thiskevinwang commented Feb 12, 2023

curl -o $HOME/.config/waypoint/plugins/waypoint-plugin-nixpacks -LO https://github.com/thiskevinwang/waypoint-plugin-nixpacks/releases/download/v0.1.0-beta.2/waypoint-plugin-nixpacks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant