Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .devcontainer/Dockerfile

This file was deleted.

12 changes: 12 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Running these samples in a DevContainer

If you are reading this, then you probably have this repo open in a DevContainer: - [https://code.visualstudio.com/docs/remote/containers](https://code.visualstudio.com/docs/remote/containers).

## Start a local Temporal Server
This will run latest Temporal images in a docker network.

```bash
make start-local
```

You should now be able to run any of the samples locally in your dev container.
48 changes: 17 additions & 31 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,21 @@
{
"name": "Temporal",
// Update the 'dockerComposeFile' list if you have more compose files or use different names.
"dockerComposeFile": "docker-compose.yml",

// The 'service' property is the name of the service for the container that VS Code should
// use. Update this value and .devcontainer/docker-compose.yml to the real service name.
"service": "devcontainer",
"workspaceFolder": "/workspace",
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],

// Set *default* container specific settings.json values on container create.
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go"
"name": "Temporal Go Samples",
"image": "mcr.microsoft.com/vscode/devcontainers/go:0-1-bullseye",
"customizations": {
"vscode": {
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go"
},
"extensions": [
"golang.Go",
"ms-azuretools.vscode-docker"
]
}
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:1": {}
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go"
],

// Forward port for temporal UI automatically
"forwardPorts": [8088],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "go version",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
87 changes: 0 additions & 87 deletions .devcontainer/docker-compose.yml

This file was deleted.

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ update-sdk:

clean:
rm -rf bin

start-local:
docker-compose up -d

ci-build: staticcheck errcheck workflowcheck bins test
GO111MODULE=off go get -u honnef.co/go/tools/cmd/staticcheck