Commit Graph

16 Commits

Author SHA1 Message Date
Josh van Leeuwen ad3442b252
dapr_scheduler: Adds scheduler-volume flag (#1422)
* dapr_scheduler: pre-create data dir

Signed-off-by: joshvanl <me@joshvanl.dev>

* Adds --scheduler-volume to specify volume for data directory

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
2024-07-12 08:22:34 -07:00
Cassie Coyle fd1d8e85bf
Distributed Scheduler CLI Changes (#1405)
* wip

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* rm scheduleJob logic. keep only init/uninstall logic

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

* Fixes install and uninstall of scheduler in standalone mode.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fixing path for Go tools in Darwin.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix Go bin location for MacOS.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix min scheduler version to be 1.14.x

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Use env var to pass scheduler host.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix CLI build to work with latest MacOS runners from GH

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Co-authored-by: Artur Souza <asouza.pro@gmail.com>
2024-07-03 14:58:55 -07:00
Mukundan Sundararajan 20978a2b59
update runtime version to 1.10.0-rc.3. Minor nit fixes (#1207)
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-02-06 13:15:47 +05:30
Mukundan Sundararajan a7f06c3b1b
Fix runtime custom path installation logic (#1203)
* fix dapr path version, custom  installation path logic, e2e

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix linter errors

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix paths for windows

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* rename daprPath to daprRuntimePath

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

---------

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-02-05 21:57:23 -08:00
Pravin Pushkar 44d8dcb752
Precedence rule for resources directory, config file and envs (#1158)
* precedence order for resources path and config path

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* env precedence set

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* pass daprInstallPath

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* test dir structure

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* remove hard coded directory structures

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* UT refactor

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* few fixes w.r.t daprPathCmdFlag

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* switching to pre-created test data folder structure

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Move Env to SharedRunConfig struct

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix bug

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* lint fix

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* some refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-19 22:10:16 +05:30
mikeb26 53dff409b4
Support environments with broken $HOME (#1057)
* Support environments with broken $HOME

Currently in standalone mode dapr cli will install the dapr runtime
binaries into $HOME/.dapr. However, in some environments $HOME is
readonly or os.UserHomeDir() can fail (e.g. AWS Lambda). To support
dapr in these environments this change does 2 things:

1. Allows the user to set DAPR_PATH environment variable to indicate
the location of the dapr runtime binaries.

2. Allows the user to optionally specify --dapr-path cli flag to
indicate the location of the dapr runtime binaries. When both
DAPR_PATH environment variable and --dapr-path CLI flag are present,
the cli flag has higher precedence.

When neither DAPR_PATH nor the --dapr-path CLI flag are present, we
fallback to existing behavior of defaulting to $HOME/.dapr.

Signed-off-by: Mike Brown <github@torvosoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix unit test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix e2e test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix lint

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Signed-off-by: Mike Brown <github@torvosoft.com>
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
2023-01-03 15:40:06 +05:30
Dmitry Shmulevich 0f9d0d3a89
replaced license headers (#855)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-10 08:09:09 +05:30
Yaron Schneider 3ee9e53338
add renewed headers (#588) 2021-02-10 08:37:08 -08:00
Aman Bhardwaj 2a4123efaf
Change init and uninstall behavior for self hosted mode (#413)
* remove install-path option for dapr init copy bianries under $HOME/.dapr/bin
2020-07-22 14:47:57 -07:00
Mukundan Sundararajan 5f9cb755a8
Fix/windows cli issue (#394)
* Close ZipReader properly

* Do not remove bin file on extraction
2020-07-13 20:18:57 -07:00
Mukundan Sundararajan ff2d5dd482
Initialize dapr without docker dependency (#386)
* Initialize dapr without docker dependency

* Create default empty components dir

* Remove --slim flag from uninstall command

* Changed phrasing

* Updated Readme

* Clarify slim init use case

* language corrections

Co-authored-by: Mark Chmarny <mchmarny@users.noreply.github.com>
Co-authored-by: Ori Zohar <orzohar@microsoft.com>
2020-07-10 16:32:45 -07:00
Mukundan Sundararajan 0b76467280
Fix Standalone dapr init behavior. (#384)
* Remove uninstall all from init path. Add install path arg to uninstall cmd. Cleanup binaries, archive correctly.

* Addressed review comments

* Change readme

* update readme
2020-06-29 15:27:59 -07:00
Mukundan Sundararajan a82a7487b5
Add Zipkin on dapr init. Add tracing config, zipkin component on init. (#377)
* Add Zipkin on dapr init. Add tracing config, zipkin component on initial run.

* Fix uninstallAll check

* Move zipkin config to init

* Default run parameter for config

* Updated Readme and dapr run reference

* Address review comments.

* Updated Readme, cli reference

* Address review comments

* Change uninstall cli ref doc
2020-06-22 09:25:10 -07:00
Aman Bhardwaj a9a8bc3ac2
passing components folder to daprd (#367)
* passing components folder to daprd

* fixing tests

* fixing tests

* using cli flag to set default value for components path

* fixing build

* linter

* linter

* fixing tests
2020-06-05 21:33:57 -07:00
vinayada1 9da489ba6e fix review comments 2020-06-03 09:54:03 -07:00
Vinaya Damle 9fee955548 Changes to fix the homepath dir on windows 2020-05-29 12:05:46 -07:00