Skip to content

[Bug] devcontainer usage  #304

Description

@bartclarkson

What are you really trying to do?

Goal: use the vscode devcontainer implementation with a minimum of configuration/overrides/additions.

Got things working as described below. Looking for guidance on these "fixes", and suspecting the documentation should be updated to be more clear on these points.

Describe the bug/repro/fixes

There seem to be two things required to get examples to run.

  1. The docker network ("temporal") is not configured for use as the DefaultHostPort by the Temporal Go SDK, which means the default 127.0.0.1:7233 produces failure until its correctly addressed. The following modification describes the change necessary to every c, err := client.Dial(client.Options{}) encountered in the examples.
	clientOptions := client.Options{
		HostPort: "temporal:7233",
	}
	c, err := client.Dial(clientOptions)

Is there a way to globally set the HostPort default to temporal:7233?

  1. To get the containers to all start, I added empty development_es.yaml at <repo>/.devcontainer/dynamicconfig/development_es.yaml.

Thank you for this repository.

Environment/Versions

OSX Monterey, Intel Chip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions