- 
                Notifications
    You must be signed in to change notification settings 
- Fork 542
state: add RavenDB support #3702
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
base: main
Are you sure you want to change the base?
Changes from 49 commits
1e5c883
              20751eb
              813f72f
              2c82f28
              53fef16
              768a625
              aa20d7b
              a1fa966
              358113c
              3ef8df4
              62b075c
              8aae575
              3003286
              f2e6e41
              91d15de
              36315dc
              a431b0b
              ba751c7
              9c893ea
              e4db81a
              abbfd98
              277c176
              4398cff
              c985605
              4bbe532
              0120009
              b53fa33
              5c74fe5
              be15d17
              60a96f2
              9f20115
              9b591b6
              95abdbe
              3b0f134
              e53e0b4
              a4b52f8
              eae0f77
              8058c19
              1f504d5
              fdd78b5
              6d6126c
              bd5858b
              7576537
              4ef65c7
              eae9409
              e90f51d
              44bfb68
              d154dc3
              e1cab7e
              27013c8
              2d64f55
              701d8f0
              6cf4257
              fb1e34c
              e9bf228
              1e6c718
              984a62f
              4be9b6f
              4d0a907
              26a6c5f
              f2ae375
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| services: | ||
| ravendb: | ||
| image: ravendb/ravendb | ||
| container_name: RavenDb | ||
| ports: | ||
| - "8080:8080" | ||
| environment: | ||
| - RAVEN_LICENSE=${RAVENDBLICENSE} | ||
| - RAVEN_DATABASE=testdapr | ||
| - RAVEN_Setup_Mode=None | ||
| - RAVEN_License_Eula_Accepted=true | ||
| - RAVEN_Security_UnsecuredAccessAllowed=PrivateNetwork | ||
| restart: unless-stopped | 
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -810,6 +810,12 @@ const components = { | |
| requireGCPCredentials: true, | ||
| certificationSetup: 'certification-state.gcp.firestore-setup.sh', | ||
| }, | ||
| 'state.ravendb': { | ||
| conformance: true, | ||
| certification: true, | ||
| conformanceSetup: 'docker-compose.sh ravendb', | ||
| requireRavenDBCredentials: true, | ||
| }, | ||
| } | ||
|  | ||
| /** | ||
|  | @@ -832,6 +838,7 @@ const components = { | |
| * @property {string?} nodeJsVersion If set, installs the specified Node.js version | ||
| * @property {string?} mongoDbVersion If set, installs the specified MongoDB version | ||
| * @property {string|string[]?} sourcePkg If set, sets the specified source package | ||
| * @property {boolean} requireRavenDBCredentials If true, sets RavenDB license environment variable | ||
| */ | ||
|  | ||
| /** | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The matrix is generated minus the step to set the environment variable it'll need to be added. (L845) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nmalocic Hi! This is the comment I was referring to | ||
|  | @@ -924,6 +931,7 @@ function GenerateMatrix(testKind, enableCloudTests) { | |
| 'source-pkg': comp.sourcePkg | ||
| .map((p) => 'github.com/dapr/components-contrib/' + p) | ||
| .join(','), | ||
| 'require-ravendb-credentials': comp.requireRavenDBCredentials || true, | ||
| }) | ||
| } | ||
|  | ||
|  | ||
|         
                  nmalocic marked this conversation as resolved.
              Show resolved
            Hide resolved | 
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # yaml-language-server: $schema=../../component-metadata-schema.json | ||
| schemaVersion: v1 | ||
| type: state | ||
| name: ravendb | ||
| version: v1 | ||
| status: development-only | ||
| title: "RavenDB" | ||
| urls: | ||
| - title: Reference | ||
| url: https://docs.dapr.io/reference/components-reference/supported-state-stores/setup-ravendb/ | ||
| capabilities: | ||
| - crud | ||
| authenticationProfiles: | ||
| - title: "No authentication" | ||
| description: | | ||
| No authentication. Connect via connection string | ||
| metadata: | ||
| - name : connectionString | ||
| required: true | ||
| description: | | ||
| Connection string to ravenDB cluster | ||
| example: '"http://live-test.ravendb.net"' | ||
| metadata: | ||
| - name: DatabaseName | ||
| description: | | ||
| The name of the database to use. | ||
| default: '"daprStore"' | ||
| example: '"daprStore"' | ||
| - name: ServerURL | ||
| description: | | ||
| Url to ravendb cluster | ||
| default: '"127.0.0.1"' | ||
| example: '"http://live-test.ravendb.net"' | ||
| - name: CertPath | ||
| description: | | ||
| Path to the certificate for secure connection | ||
| example: "/path/to/cert" | ||
| - name: KeyPath | ||
| description: | | ||
| Path to the key for secure connection | ||
| example: "/path/to/key" | ||
| - name: EnableTTL | ||
| description: | | ||
| Boolean value that enables or disables RaveDB TTL functionality | ||
| example: "true" | ||
| default: "true" | ||
| - name: TTLFrequency | ||
| description: | | ||
| Sets RavenDB frequency on running the background expiration task and deleting records | ||
| example: "15" | ||
| default: "60" | 
Uh oh!
There was an error while loading. Please reload this page.