-
Notifications
You must be signed in to change notification settings - Fork 42
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 project to showcase how to use dev env vars in Daytona #123
Conversation
Signed-off-by: bellatrick <[email protected]>
Signed-off-by: bellatrick <[email protected]>
Signed-off-by: bellatrick <[email protected]>
Hey! @mojafa, this PR is ready for review. |
@bellatrick I wonder why you didn't check this, yet you have it:
|
I didn't explicitly mention the branch with |
Signed-off-by: bellatrick <[email protected]>
@bellatrick I wanted to let you know that I've just pushed some changes to the main branch that fix some linting issues and update the compliance rules. These updates should help you pass the content compliance checks in your current pull request. When you get a chance, please pull the latest changes from the main branch into your working branch. This should make the integration smoother and help avoid any potential conflicts. |
![]() ![]() @bellatrick please update the command |
Alright got it! |
Thanks! Will do that. |
Signed-off-by: bellatrick <[email protected]>
merged upstream
|
||
### TL;DR | ||
|
||
- **What**: Learn to use `daytona env set` for managing workspace environmental variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bellatrick please rewrite this following the examples on the blog, e.g. https://www.daytona.io/dotfiles/train-gpt-models-instantly-with-daytona-infrastructure
|
||
## Introduction | ||
|
||
[Environmental variables]('/definitions/20241126_definition_environment_variables.md') are important for configuring development environments and storing sensitive information. They provide a flexible way to control application behavior without hardcoding values directly into the source code. Daytona offers a streamlined method for setting, managing, and using environmental variables across various workspaces using the `daytona env` command. This simplifies configuration and enhances security especially when collaborating on projects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move the link from the first paragraph somewhere else, especially when it is a first word it will look ugly, thanks @bellatrick
|
||
## Introduction | ||
|
||
[Environmental variables]('/definitions/20241126_definition_environment_variables.md') are important for configuring development environments and storing sensitive information. They provide a flexible way to control application behavior without hardcoding values directly into the source code. Daytona offers a streamlined method for setting, managing, and using environmental variables across various workspaces using the `daytona env` command. This simplifies configuration and enhances security especially when collaborating on projects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls split this in two para, second stars: Daytona offers a...
- Create a workspace with `daytona create --code` | ||
- Verify variables with `daytona env list` | ||
|
||
## Prerequisites |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add just a short sentence for prereq, e.g. Before starting you need to ... something like that
also link Daytona to github readme
docker also to their install docs
vs code also
daytona server | ||
``` | ||
|
||
Then use `daytona env set` to define environmental variables: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mention they can use TUI, editor or in a cli like in your example, add one more screenshot of TUI
![Result of running python script](assets/20241126_Using_Environmental_Variables_in_Daytona_2.png) | ||
|
||
### Best Practices | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add one small intro sentence to section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @nkkko
I've made all the suggested changes.
…paragraphs before prerequisites and best practices sections Signed-off-by: bellatrick <[email protected]>
/claim #29
Loom Link
Writer's Checklist
Writing Structure
code elements
andMarkdown format
where appropriate.Fact-Checking
Asset Management
/assets
folder.YYYYMMDD_title_of_the_article_IMG_NAME_NO.png
.Interlinking
CTRL+F
to search for relevant keywords in:Glossary/Definitions
/defitnitions
folder.Review and Edit