Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 767964f

Browse files
docs: refactor workspaces, projects, and targets (#207)
Signed-off-by: stefanicjuraj <[email protected]>
1 parent b0c3e2c commit 767964f

File tree

16 files changed

+1845
-1359
lines changed

16 files changed

+1845
-1359
lines changed

astro.config.mjs

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ export default defineConfig({
9797
icon: 'git-commit.svg',
9898
},
9999
},
100+
{
101+
label: 'Target Configs',
102+
link: '/configuration/target-config',
103+
attrs: {
104+
icon: 'tag.svg',
105+
},
106+
},
100107
{
101108
label: 'Container Registries',
102109
link: '/configuration/container-registries',
@@ -105,10 +112,17 @@ export default defineConfig({
105112
},
106113
},
107114
{
108-
label: 'Targets',
109-
link: '/configuration/targets',
115+
label: 'Workspace Templates',
116+
link: '/configuration/workspace-templates',
110117
attrs: {
111-
icon: 'tag.svg',
118+
icon: 'computer.svg',
119+
},
120+
},
121+
{
122+
label: 'Server',
123+
link: '/configuration/server',
124+
attrs: {
125+
icon: 'server.svg',
112126
},
113127
},
114128
{
@@ -131,17 +145,17 @@ export default defineConfig({
131145
},
132146
},
133147
{
134-
label: 'Agent Toolbox',
135-
link: '/usage/agent-toolbox',
148+
label: 'Targets',
149+
link: '/usage/targets',
136150
attrs: {
137-
icon: 'agent-toolbox.svg',
151+
icon: 'tag.svg',
138152
},
139153
},
140154
{
141-
label: 'Projects',
142-
link: '/usage/projects',
155+
label: 'Agent Toolbox',
156+
link: '/usage/agent-toolbox',
143157
attrs: {
144-
icon: 'folder.svg',
158+
icon: 'agent-toolbox.svg',
145159
},
146160
},
147161
{
@@ -173,10 +187,10 @@ export default defineConfig({
173187
},
174188
},
175189
{
176-
label: 'Server',
177-
link: '/usage/server',
190+
label: 'Runners',
191+
link: '/usage/runners',
178192
attrs: {
179-
icon: 'server.svg',
193+
icon: 'cluster.svg',
180194
},
181195
},
182196
],

src/content/docs/configuration/container-registries.mdx

Lines changed: 55 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,66 @@ import Label from '@components/Label.astro'
1111

1212
Container registries store credentials used to pull container images from specified registry servers. Adding container registry credentials is useful for users who want to create Workspaces from private images and those hosted on private registries.
1313

14-
## Add a Container Registry
14+
Container registries are managed through environment variables, enabling you to securely store and manage credentials. Daytona provides options to set, list, and delete container registries for your Workspaces.
1515

16-
Daytona provides an option to add a container registry for your Workspace.
16+
Daytona provides options to set global environment variables that apply to all Workspaces or set environment variables for a specific Workspace. To set environment variables for a specific Workspace, use the `--env` flag when creating a new Workspace, or configure the environment variables in the Workspace's template. For server-wide environment variables that apply to all new Workspaces, use the `daytona env` command.
1717

18-
1. Run the following command to add a container registry:
18+
## Set a Container Registry
19+
20+
Daytona provides an option to set a container registry through environment variables for your Workspace.
21+
22+
1. Run the following command to set a container registry environment variable:
1923

2024
```shell
21-
daytona container-registry add
25+
daytona env set
2226
```
2327

24-
Upon running the command, you will be prompted to enter the following details:
25-
26-
- **Server URL**: The URL of the container registry.
27-
- **Username**: The username to authenticate with the container registry.
28-
- **Password**: The password to authenticate with the container registry.
28+
2. Set the server environment variable key for the container registry:
2929

3030
```text
31-
Server URL
31+
Set server environment variable
32+
Key
3233
>
34+
```
3335

34-
Username
35-
>
36+
:::tip
37+
Add the following environment variables to configure your container registry:
38+
39+
- **`<*>_CONTAINER_REGISTRY_SERVER`**
40+
41+
The URL of the container registry.
42+
43+
- **`<*>_CONTAINER_REGISTRY_USERNAME`**
44+
45+
The username to authenticate with the container registry.
46+
47+
- **`<*>_CONTAINER_REGISTRY_PASSWORD`**
48+
49+
The password to authenticate with the container registry.
3650

37-
Password
51+
:::
52+
53+
<br />
54+
55+
3. Set the server environment variable value for the container registry:
56+
57+
```text
58+
Value
3859
>
3960
```
4061

62+
4. Select whether to add another environment variable:
63+
64+
```text
65+
Add another environment variable?
66+
67+
[Yes] [No]
68+
```
69+
70+
Upon selecting, Daytona will set the container registry environment variables for your Workspace.
71+
4172
```text
42-
Registry set successfully
73+
Server environment variables have been set successfully
4374
```
4475

4576
## List Container Registries
@@ -49,15 +80,15 @@ Daytona provides an option to list the container registries configured for your
4980
1. Run the following command to list the container registries:
5081

5182
```shell
52-
daytona container-registry list
83+
daytona env list
5384
```
5485

55-
Upon running this command, Daytona will display a list of your configured container registries with their respective details.
86+
Upon running this command, Daytona will display a list of your configured container registries' environment variables.
5687

5788
```text
58-
Server Username Password
59-
─────────────────────────────────────────────────────────────────────
60-
myregistry.com daytona ********
89+
Key Value
90+
────────────────────────────────────
91+
MyEnvVariable ********
6192
```
6293

6394
## Delete a Container Registry
@@ -67,19 +98,19 @@ Daytona provides an option to delete a container registry from your Workspace.
6798
1. Run the following command to delete a container registry:
6899

69100
```shell
70-
daytona container-registry delete
101+
daytona env delete
71102
```
72103

73104
Upon running this command, you will be prompted to select the container registry you want to delete.
74105

75106
```text
76-
Choose a container registry
107+
Select Server Environment Variables To Delete
77108
1 item
78109
===
79-
myregistry.com
80-
daytona
110+
MyEnvVariable
111+
********
81112
```
82113

83114
```text
84-
Container registry deleted successfully
115+
Server environment variables have been successfully removed
85116
```

src/content/docs/configuration/git-providers.mdx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ By adding a Git Provider, your credentials are securely embedded into your Works
1919

2020
## Add a Git Provider
2121

22+
Daytona provides an option to add a Git Provider, enabling you to connect your preferred Git Provider and access your repositories directly from Daytona.
23+
2224
1. Run the following command to add a Git Provider:
2325

2426
```shell
@@ -116,7 +118,7 @@ Git provider has been registered
116118

117119
## List Connected Git Providers
118120

119-
Daytona allows you to keep track of your Git Providers by listing all previously created Git Providers.
121+
Daytona provides an option to keep track of your Git Providers by listing all previously created Git Providers.
120122

121123
1. Run the following command to list currently connected Git Providers:
122124

@@ -133,7 +135,7 @@ GitLab (alias)
133135

134136
## Update a Git Provider
135137

136-
Daytona allows you to update an existing Git Provider, enabling you to apply the latest enhancements and bug fixes.
138+
Daytona provides an option to update an existing Git Provider, enabling you to apply the latest enhancements and bug fixes.
137139

138140
1. Run the following command to update a Git Provider:
139141

@@ -175,7 +177,7 @@ Git provider has been updated
175177

176178
## Delete a Git Provider
177179

178-
Daytona allows you to delete Git Providers, helping you manage and delete those that are no longer needed. Once a Git Provider is deleted, you will not be able to manage or deploy Workspaces without adding another Git Provider.
180+
Daytona provides an option to delete Git Providers, helping you manage and delete those that are no longer needed. Once a Git Provider is deleted, you will not be able to manage or deploy Workspaces without adding another Git Provider.
179181

180182
1. Run the following command to delete a Git Provider:
181183

@@ -201,7 +203,7 @@ Git provider has been removed
201203

202204
## GitHub
203205

204-
Daytona allows you to connect your GitHub account and access your repositories directly from Daytona.
206+
Daytona provides an option to connect your GitHub account and access your repositories directly from Daytona.
205207

206208
1. Run the following command to add GitHub as a Git Provider:
207209

@@ -243,7 +245,7 @@ Git provider has been registered
243245

244246
## GitLab
245247

246-
Daytona allows you to connect your GitLab account and access your repositories directly from Daytona.
248+
Daytona provides an option to connect your GitLab account and access your repositories directly from Daytona.
247249

248250
1. Run the following command to add GitLab as a Git Provider:
249251

@@ -285,7 +287,7 @@ Git provider has been registered
285287

286288
## Bitbucket
287289

288-
Daytona allows you to connect your Bitbucket account and access your repositories directly from Daytona.
290+
Daytona provides an option to connect your Bitbucket account and access your repositories directly from Daytona.
289291

290292
1. Run the following command to add Bitbucket as a Git Provider:
291293

@@ -332,7 +334,7 @@ Git provider has been registered
332334

333335
## GitHub Enterprise Server
334336

335-
Daytona allows you to connect your GitHub Enterprise Server account and access your repositories directly from Daytona.
337+
Daytona provides an option to connect your GitHub Enterprise Server account and access your repositories directly from Daytona.
336338

337339
1. Run the following command to add GitHub Enterprise Server as a Git Provider:
338340

@@ -385,7 +387,7 @@ Git provider has been registered
385387

386388
## GitLab Self-Managed
387389

388-
Daytona allows you to connect your GitLab Self-Managed account and access your repositories directly from Daytona.
390+
Daytona provides an option to connect your GitLab Self-Managed account and access your repositories directly from Daytona.
389391

390392
1. Run the following command to add GitLab Self-Managed as a Git Provider:
391393

@@ -438,7 +440,7 @@ Git provider has been registered
438440

439441
## Bitbucket Server
440442

441-
Daytona allows you to connect your Bitbucket Server account and access your repositories directly from Daytona.
443+
Daytona provides an option to connect your Bitbucket Server account and access your repositories directly from Daytona.
442444

443445
1. Run the following command to add Bitbucket Server as a Git Provider:
444446

@@ -496,7 +498,7 @@ Git provider has been registered
496498

497499
## Codeberg
498500

499-
Daytona allows you to connect your Codeberg account and access your repositories directly from Daytona.
501+
Daytona provides an option to connect your Codeberg account and access your repositories directly from Daytona.
500502

501503
1. Run the following command to add Codeberg as a Git Provider:
502504

@@ -543,7 +545,7 @@ Git provider has been registered
543545

544546
## Gitea
545547

546-
Daytona allows you to connect your Gitea account and access your repositories directly from Daytona.
548+
Daytona provides an option to connect your Gitea account and access your repositories directly from Daytona.
547549

548550
1. Run the following command to add Gitea as a Git Provider:
549551

@@ -596,7 +598,7 @@ Git provider has been registered
596598

597599
## Gitness
598600

599-
Daytona allows you to connect your Gitness account and access your repositories directly from Daytona.
601+
Daytona provides an option to connect your Gitness account and access your repositories directly from Daytona.
600602

601603
1. Run the following command to add Gitness as a Git Provider:
602604

@@ -649,7 +651,7 @@ Git provider has been registered
649651

650652
## Azure DevOps
651653

652-
Daytona allows you to connect your Azure DevOps account and access your repositories directly from Daytona.
654+
Daytona provides an option to connect your Azure DevOps account and access your repositories directly from Daytona.
653655

654656
1. Run the following command to add Azure DevOps as a Git Provider:
655657

@@ -702,7 +704,7 @@ Git provider has been registered
702704

703705
## AWS CodeCommit
704706

705-
Daytona allows you to connect your AWS CodeCommit account and access your repositories directly from Daytona.
707+
Daytona provides an option to connect your AWS CodeCommit account and access your repositories directly from Daytona.
706708

707709
1. Run the following command to add AWS CodeCommit as a Git Provider:
708710

@@ -766,7 +768,7 @@ Git provider has been registered
766768

767769
## Gogs
768770

769-
Daytona allows you to connect your Gogs account and access your repositories directly from Daytona.
771+
Daytona provides an option to connect your Gogs account and access your repositories directly from Daytona.
770772

771773
1. Run the following command to add Gogs as a Git Provider:
772774

@@ -832,7 +834,7 @@ Git provider has been registered
832834

833835
## Gitee
834836

835-
Daytona allows you to connect your Gitee account and access your repositories directly from Daytona.
837+
Daytona provides an option to connect your Gitee account and access your repositories directly from Daytona.
836838

837839
1. Run the following command to add Gitee as a Git Provider:
838840

0 commit comments

Comments
 (0)