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

Add Command to Start in Daytona with Injected Devcontainer #16

Open
nkkko opened this issue Sep 26, 2024 · 0 comments
Open

Add Command to Start in Daytona with Injected Devcontainer #16

nkkko opened this issue Sep 26, 2024 · 0 comments

Comments

@nkkko
Copy link
Member

nkkko commented Sep 26, 2024

Is your feature request related to a problem? Please describe.
Currently, users can generate a devcontainer.json but have to manually set it up in their local environment. Integrating an automated start command for Daytona, which downloads and injects the generated devcontainer.json, will streamline the setup process for users.

Describe the solution you'd like

  • Add a command under the generated devcontainer.json that installs Daytona and starts a workspace with the injected devcontainer.json.
  • Integrate this feature to depend on the "Add New Route for Fetching Generated Devcontainer via URL Hash" Add New Route for Fetching Generated Devcontainer via URL Hash #8.
  • The command should be a custom bash script that users can simply copy and run to initialize the environment in Daytona.

Describe alternatives you've considered

  • Manually outlining the steps in the documentation, but this is prone to user error and less convenient.
  • Providing separate scripts, which can fragment the user experience and complicate the process.

Additional context
The command should:

  1. Handle the installation of Daytona if it's not already installed.
  2. Create a new Daytona workspace.
  3. Fetch the generated devcontainer.json using the new route with a URL hash.
  4. Pipe the fetched devcontainer.json into the workspace initialization process.

Example command:

(curl -L https://download.daytona.io/daytona/install.sh | sudo bash) && daytona create https://github.com/YOUR_REPOSITORY --code && curl https://devcontainer.ai/#https://github.com/YOUR_REPOSITORY > .devcontainer/devcontainer.json && daytona start --workspace .devcontainer/devcontainer.json
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

No branches or pull requests

1 participant