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

example: added docker local workspace #1025

Merged
merged 1 commit into from
Apr 18, 2022
Merged

example: added docker local workspace #1025

merged 1 commit into from
Apr 18, 2022

Conversation

ntimo
Copy link
Contributor

@ntimo ntimo commented Apr 15, 2022

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 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.
Copy link
Member

@coadler coadler left a comment

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!

examples/docker-local/README.md Outdated Show resolved Hide resolved
@coadler
Copy link
Member

coadler commented Apr 15, 2022

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

@ntimo
Copy link
Contributor Author

ntimo commented Apr 15, 2022

@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
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
Copy link
Member

coadler commented Apr 16, 2022

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.

None yet

3 participants