Skip to content

example: added docker local workspace - #1025

Merged
kylecarbs merged 1 commit into
coder:mainfrom
ntimo:task/docker-workspace-example
Apr 18, 2022
Merged

kylecarbs merged 1 commit into
coder:mainfrom
ntimo:task/docker-workspace-example

Conversation

@ntimo

@ntimo ntimo commented Apr 15, 2022

Copy link
Copy Markdown
Contributor

This PR adds a new example template that can be used with the coder start --dev mode to provision a workspace container on the local machine.

@greyscaled
greyscaled requested a review from kylecarbs April 15, 2022 18:30
greyscaled added a commit that referenced this pull request Apr 15, 2022
Summary:

PRs like #1025 feel like they deserve a doc: type, but we didn't have one.
Furthermore our definitions for correct and fix were stale.

@coadler coadler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

┌──────────────────────────────────────────────────────────────────┐
│ RESOURCE                    STATUS             ACCESS            │
├──────────────────────────────────────────────────────────────────┤
│ docker_container.workspace  ephemeral                            │
│ └─ dev (linux, amd64)       ⦾ connecting [0s]   coder ssh colin  │
├──────────────────────────────────────────────────────────────────┤
│ docker_volume.coder_volume  ephemeral                            │
└──────────────────────────────────────────────────────────────────┘
The colin workspace has been created!

colin at coder in ~/Projects/coder/coder/examples/docker-local (task/docker-workspace-example)
$ coder ssh colin
coder@d982a97c7cac:/$

Works great!

Comment thread examples/docker-local/README.md Resolved
@coadler

coadler commented Apr 15, 2022

Copy link
Copy Markdown
Contributor

Could you try rebasing? I think I pushed a fix to allow actions to run for external prs.

@ntimo

ntimo commented Apr 15, 2022

Copy link
Copy Markdown
Contributor Author

@coadler seems like some of the tests are failing because of missing env variables. I guess since its a fork the CI job does not have access to the same env vars as the ones in the main repo, which of course is good. But then it would maybe be helpful to somehow exclude these jobs from forks if possible?

@kylecarbs

Copy link
Copy Markdown
Member

@ntimo this is our first external fork, so we'll be removing those steps from requiring the variables! I'll fix that now.

greyscaled added a commit that referenced this pull request Apr 15, 2022
Summary:

PRs like #1025 feel like they deserve a doc: type, but we didn't have one.
Furthermore our definitions for correct and fix were stale.
@coadler

coadler commented Apr 16, 2022

Copy link
Copy Markdown
Contributor

Should be fixed now in #1048. Apologies for the delay!

@ntimo ntimo changed the title feat: added docker local workspace example example:: added docker local workspace Apr 16, 2022
@ntimo ntimo changed the title example:: added docker local workspace example: added docker local workspace Apr 16, 2022
@kylecarbs
kylecarbs merged commit 9faa39a into coder:main Apr 18, 2022
@kylecarbs
kylecarbs deleted the task/docker-workspace-example branch April 18, 2022 15:20
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