Skip to content

Commit

Permalink
feat: workspace management refactor (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Puljak <[email protected]>
Co-authored-by: Ivan Dagelic <[email protected]>
  • Loading branch information
idagelic authored Jan 24, 2025
1 parent 8151dd7 commit 0ccfe67
Show file tree
Hide file tree
Showing 11 changed files with 384 additions and 288 deletions.
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

</div>


<h1 align="center">Daytona Docker Provider</h1>
<div align="center">
This repository is the home of the <a href="https://github.com/daytonaio/daytona">Daytona</a> Docker Provider.
Expand All @@ -33,26 +32,26 @@ This repository is the home of the <a href="https://github.com/daytonaio/daytona
<a href="https://twitter.com/Daytonaio">Twitter</a>
</p>

The Docker Provider allows Daytona to create workspace projects as Docker containers on your local or remote machine. It is a default provider in Daytona, which means it is installed with every server by default.
The Docker Provider allows Daytona to create workspaces as Docker containers on your local or remote machine. It is a default provider in Daytona, which means it is installed with every server by default.

## Target Options

| Property | Type | Optional | DefaultValue | InputMasked | DisabledPredicate |
|------------------------- |---------- |---------- |----------------------------- |------------- |------------------- |
| Sock Path | String | true | /var/run/docker.sock | false | |
| Remote Hostname | String | true | | false | ^local$ |
| Remote Port | Int | true | 22 | false | ^local$ |
| Remote User | String | true | | false | ^local$ |
| Remote Password | String | true | | true | ^local$ |
| Remote Private Key Path | FilePath | true | | false | ^local$ |
| Property | Type | Optional | DefaultValue | InputMasked | DisabledPredicate |
| ----------------------- | -------- | -------- | -------------------- | ----------- | ----------------- |
| Sock Path | String | true | /var/run/docker.sock | false | |
| Remote Hostname | String | true | | false | ^local$ |
| Remote Port | Int | true | 22 | false | ^local$ |
| Remote User | String | true | | false | ^local$ |
| Remote Password | String | true | | true | ^local$ |
| Remote Private Key Path | FilePath | true | | false | ^local$ |

### Preset Targets

#### Local
| Property | Value |
|----------------- |----------------------------- |
| Sock Path | /var/run/docker.sock |

| Property | Value |
| --------- | -------------------- |
| Sock Path | /var/run/docker.sock |

## Code of Conduct

Expand All @@ -72,4 +71,4 @@ Afterwards, navigate to the [contributing guide](CONTRIBUTING.md) to get started
## Questions

For more information on how to use and develop Daytona, talk to us on
[Slack](https://go.daytona.io/slack).
[Slack](https://go.daytona.io/slack).
43 changes: 34 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ go 1.23.0

toolchain go1.23.1

// samber/lo v1.47.0 - required by headscale breaks frp
replace github.com/samber/lo => github.com/samber/lo v1.39.0

require (
github.com/daytonaio/daytona v0.50.0
github.com/daytonaio/daytona v0.52.0
github.com/docker/docker v27.2.0+incompatible
github.com/hashicorp/go-hclog v1.6.3
github.com/hashicorp/go-plugin v1.6.0
Expand All @@ -21,8 +24,9 @@ require (
gitee.com/openeuler/go-gitee v0.0.0-20220530104019-3af895bc380c // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/ProtonMail/go-crypto v1.1.3 // indirect
github.com/antihax/optional v1.0.0 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aws/aws-sdk-go v1.54.19 // indirect
github.com/aws/aws-sdk-go-v2 v1.30.4 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.26 // indirect
Expand All @@ -39,22 +43,33 @@ require (
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect
github.com/aws/smithy-go v1.20.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/catppuccin/go v0.2.0 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/charmbracelet/bubbles v0.20.0 // indirect
github.com/charmbracelet/bubbletea v1.1.0 // indirect
github.com/charmbracelet/huh v0.6.0 // indirect
github.com/charmbracelet/lipgloss v0.13.0 // indirect
github.com/charmbracelet/x/ansi v0.2.3 // indirect
github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 // indirect
github.com/charmbracelet/x/term v0.2.0 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/compose-spec/compose-go/v2 v2.1.3 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/compose-spec/compose-go/v2 v2.4.1 // indirect
github.com/cyphar/filepath-securejoin v0.2.5 // indirect
github.com/davidmz/go-pageant v1.0.2 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/gfleury/go-bitbucket-v1 v0.0.0-20240131155556-0b41d7863037 // indirect
github.com/go-fed/httpsig v1.1.0 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.1-0.20240427054813-8453aa90c6ec // indirect
github.com/go-git/go-git/v5 v5.12.1-0.20240617075238-c127d1b35535 // indirect
github.com/go-git/go-billy/v5 v5.6.0 // indirect
github.com/go-git/go-git/v5 v5.13.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
Expand All @@ -67,6 +82,7 @@ require (
github.com/google/go-github v17.0.0+incompatible // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
Expand All @@ -75,23 +91,33 @@ require (
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/ktrysmt/go-bitbucket v0.9.76 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/mattn/go-shellwords v1.0.12 // indirect
github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b5 // indirect
github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77 // indirect
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/sahilm/fuzzy v0.1.1 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/skeema/knownhosts v1.3.0 // indirect
github.com/spf13/cobra v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tklauser/go-sysconf v0.3.13 // indirect
Expand All @@ -110,8 +136,7 @@ require (
go.opentelemetry.io/otel/trace v1.26.0 // indirect
go.opentelemetry.io/proto/otlp v1.2.0 // indirect
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 // indirect
golang.org/x/mod v0.20.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/oauth2 v0.22.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
Expand Down
Loading

0 comments on commit 0ccfe67

Please sign in to comment.