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

Gradle tasks to start playground locally (#23939) #23941

Merged
merged 4 commits into from
Dec 15, 2022

Conversation

alexeyinkin
Copy link
Contributor

@alexeyinkin alexeyinkin commented Nov 2, 2022

This improvement was prepared by @vchunikhin and was kept in our local branch. We have been using it to develop frontend against unmerged backend branches.

I cannot test it fully because per Vlad it takes ~30 minutes on his machine to get all runners up, and mine is not powerful enough. Still this is useful if some runners and frontend are commented out.

I think this is better merged so it does not get outdated if living in our branch.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

@vchunikhin
Copy link
Contributor

lgtm

@alexeyinkin alexeyinkin marked this pull request as ready for review December 9, 2022 13:21
@alexeyinkin
Copy link
Contributor Author

R: @damondouglas

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2022

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

Copy link
Contributor

@damondouglas damondouglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Start:

```bash
cd beam
./gradlew playground:backend:containers:router:dockerComposeLocalUp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we are migrating to kubernetes, may we consider moving away from docker compose? An alternative is minikube. If you'd like a pair programming session to set this up, I'm more than willing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have never been using Kubernetes in any way so it would take days to prepare for that session. Although I am too more than willing.

There may be benefits of minikube over local Docker, but this branch is more of a daily tool to us to develop against an undeployed backend. And the frontend does not care how the backend is started as long as it has a host and a port. We currently copy this configuration from one local branch to another. So it would just save time today if we had it in master.

One other reason to keep docker compose for awhile is that we already have it elsewhere, for instance in https://github.com/apache/beam/blob/master/playground/backend/containers/router/docker-compose.local.yml

Copy link
Contributor

@damondouglas damondouglas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pabloem LGTM understanding that this comment needs to be addressed in the future

@pabloem pabloem merged commit aa6cc16 into apache:master Dec 15, 2022
@pabloem
Copy link
Member

pabloem commented Dec 15, 2022

lgtm thanks y'all

lostluck pushed a commit to lostluck/beam that referenced this pull request Dec 22, 2022
* Gradle tasks to start playground locally (apache#23939)

* Update task descriptions (apache#23939)

* Add local backend running to README (apache#23939)

* Clean up README (apache#23939)
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

Successfully merging this pull request may close these issues.

[Task]: Gradle tasks to start Playground locally
4 participants