Skip to content

Local workspaces / offline mode #6815

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

Open
bpmct opened this issue Mar 27, 2023 · 6 comments
Open

Local workspaces / offline mode #6815

bpmct opened this issue Mar 27, 2023 · 6 comments
Labels
customer-requested Features requested by enterprise customers. Only humans may set this. roadmap https://coder.com/roadmap. Only humans may set this. roadmap-maybe Ideas we're considering! Only humans may set this.

Comments

@bpmct
Copy link
Member

bpmct commented Mar 27, 2023

If I'm developing in a container, it'd be great to sync my work down to a local machine when I am developing offline (e.g. on an airplane) and then sync back up to a Coder workspace for increased performance.

Local workspaces also may have some other use cases:

  • Developing with local embedded hardware
  • Low latency (no remote connection)
  • Coder still provides constant environments for every engineer on a team and usage metrics

Note: This is something we are still considering for our roadmap, feedback is welcome. Feel free to leave a comment in this issue or contact us

@bpmct bpmct added roadmap https://coder.com/roadmap. Only humans may set this. roadmap-maybe Ideas we're considering! Only humans may set this. labels Mar 27, 2023
@MrPeacockNLB
Copy link
Contributor

MrPeacockNLB commented Mar 27, 2023

Some of our developers are travelling by train. So this is something they asked us for. No idea how this should work but sounds realy nice.

@github-actions github-actions bot added the stale This issue is like stale bread. label Jun 26, 2023
@Akantor47
Copy link

I would be very interested in this feature as well.

We are currently only using docker on our coder server, and wouldn't it be as easy as just assuming that my local pc is a server where I could deploy my workspace to? And making sure the network interface can pick up the direct connection.

After loading the workspace I could drop my network connection then. Or connect directly to the container.

This could also decrease server costs, because everybody with small projects or high performance pc's could use the local system as deployment target and not use a server for it.

But I also can see some issues with different terraform providers.

@github-actions github-actions bot removed the stale This issue is like stale bread. label Jun 30, 2023
@github-actions github-actions bot added the stale This issue is like stale bread. label Jan 1, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2024
@stirby
Copy link
Collaborator

stirby commented Feb 2, 2024

Reopening because this is something we're considering for the long-term future.

@stirby stirby reopened this Feb 2, 2024
@stirby stirby removed the stale This issue is like stale bread. label Feb 2, 2024
@sreya sreya closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
@bpmct bpmct reopened this Oct 1, 2024
@coder-labeler coder-labeler bot added customer-requested Features requested by enterprise customers. Only humans may set this. feature labels Oct 1, 2024
@matifali
Copy link
Member

This may be possible with #14859, if we run a local provisioner on the client machine that should host the workspace infrastructure. It could make use of Docker Desktop or something like colima to run local workspaces. Yes, it will not provide sync with a remote workspace, but will still help give a working standardized dev environment in conditions with bad connectivity.

@matifali matifali removed the feature label Oct 14, 2024
@lietryon
Copy link

lietryon commented Oct 16, 2024

This may be possible with #14859, if we run a local provisioner on the client machine that should host the workspace infrastructure. It could make use of Docker Desktop or something like colima to run local workspaces. Yes, it will not provide sync with a remote workspace, but will still help give a working standardized dev environment in conditions with bad connectivity.

Just throwing it out there for reference, DevPod is an another example of client-side provisioning that allows switching back and forth between local and cloud development environments.

@ggjulio
Copy link
Contributor

ggjulio commented Oct 16, 2024

@lietryon I tried DevPod a few month ago, but the UI kept freezing on windows...

Instead I just vscode, and now even IntelliJ based IDEs can provision devcontainers anywhere including on a local daemon.
BTW the latest intelliJ now doesn't even need to manually install the gateway , remote development is included in the IDE.

In short, as said by @lietryon when using devcontainers the local issue is solved.
That's why it would be nice if coder would prioritize feature parity with codespaces. (not talking about envbuilder, but the coder agent/server/ui)
IMO daytona and GitPod currently have better support than coder do.
(workspace creation, ide feedback loop, user secret, prebuilds, reflecting the effective devcontainer config, ports forwarding, etc, and several other offtopic issues)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-requested Features requested by enterprise customers. Only humans may set this. roadmap https://coder.com/roadmap. Only humans may set this. roadmap-maybe Ideas we're considering! Only humans may set this.
Projects
None yet
Development

No branches or pull requests

8 participants