Skip to content

Conversation

zawadzkidiana
Copy link

@zawadzkidiana zawadzkidiana commented Oct 20, 2025

What changed?

  • Created initial project structure for Dockerizing samples
  • Added basic documentation framework (README.md)
  • Set up development branch and project organization

Why?
This is the initial setup for adding Docker support to Cadence samples. Having a clear structure from the start will help organize the implementation of:

  • Docker configurations for samples
  • Documentation for containerized deployment
  • Local development setup

How did you test it?

  • Verified project structure and file organization
  • Confirmed documentation formatting and clarity

Potential risks

  • None for this initial setup commit

Release notes
N/A - Initial project structure only

Documentation Changes

  • Added initial README.md template in samples/docker/
  • Further documentation will be added as Docker implementation progresses

dianazawadzki and others added 3 commits October 20, 2025 14:28
Signed-off-by: Diana Zawadzki <[email protected]>
Signed-off-by: Diana Zawadzki <[email protected]>
Why:
- Current samples only support local machine setup
- Need to support Kubernetes deployment scenarios
- Simplify onboarding process for new users

This change:
- Adds Dockerfile for sample applications
- Adds docker-compose.yml for local development
- Adds documentation for Docker usage

Testing:
- Built and tested Docker image locally
- Verified sample workflows run in containerized environment
- Tested with docker-compose setup

What's Next:
- Add Kubernetes Helm charts
- Set up CI/CD pipeline for Docker images
- Add more sample workflows

Related Issue: #<issue_number>

Signed-off-by: Diana Zawadzki <[email protected]>
@zawadzkidiana zawadzkidiana force-pushed the feature/dockerize-samples branch from d8ed76d to a9e45b0 Compare October 20, 2025 21:29
Signed-off-by: Diana Zawadzki <[email protected]>
@zawadzkidiana zawadzkidiana changed the title Feature/dockerize samples feature: dockerizeSamples Oct 20, 2025
@zawadzkidiana zawadzkidiana force-pushed the feature/dockerize-samples branch from 3603a60 to 9220a25 Compare October 20, 2025 22:37
zawadzkidiana and others added 3 commits October 21, 2025 11:47
- Implemented basic Cadence worker service with YARPC/gRPC
- Added helloWorldWorkflow that orchestrates activity execution
- Added helloWorldActivity that returns greeting message
- Included long-running workflow example for UI demonstration
- Added comprehensive documentation (README, test results, completion guide)
- Configured activity timeouts and error handling
- Fully tested with multiple successful workflow executions
### Start Everything
```bash
# 1. Start Cadence server
cd /Users/zawadzki/Uber/cadence
Copy link
Member

Choose a reason for hiding this comment

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

This command only applies to your own machine.

Copy link
Author

Choose a reason for hiding this comment

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

Good catch - that was a machine-specific path.

I realized I was working in the wrong repo (this should be in cadence-samples, not cadence). Moving it there now and fixing all the paths. Will close this PR.

@@ -1,4 +1,4 @@
go 1.23.0
go 1.25.2
Copy link
Member

Choose a reason for hiding this comment

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

why are we updating the go language version?

)

// longRunningWorkflow demonstrates a workflow that stays open for a while
func longRunningWorkflow(ctx workflow.Context, name string) (*string, error) {
Copy link
Member

Choose a reason for hiding this comment

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

We have a bunch of samples defined in the samples repo. We should look into ways to use that instead of writing a new workflow

Copy link
Author

Choose a reason for hiding this comment

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

@timl3136 You're right - I removed this file. The docker-samples now just has a minimal hello-world and points people to the main samples repo for more examples. No need to duplicate what already exists.

@timl3136
Copy link
Member

I think we have dockerized cadence-samples here

@zawadzkidiana zawadzkidiana deleted the feature/dockerize-samples branch October 22, 2025 21:46
@zawadzkidiana
Copy link
Author

Closing this PR - it was opened in the wrong repository.
The corrected version will be in cadence-samples with all
feedback addressed. Thanks @timl3136 for the review!

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.

3 participants