7 Commits

Author SHA1 Message Date
dependabot[bot]
0f7ed83922 Bump clsx from 1.1.1 to 2.0.0
Bumps [clsx](https://github.com/lukeed/clsx) from 1.1.1 to 2.0.0.
- [Release notes](https://github.com/lukeed/clsx/releases)
- [Commits](https://github.com/lukeed/clsx/compare/v1.1.1...v2.0.0)

---
updated-dependencies:
- dependency-name: clsx
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-17 01:38:52 +00:00
8474cde70e specify kubectl version 2023-04-27 17:08:54 +03:00
Shakar
b38a071c8d Use the new github runner that can deploy public repos
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
2023-04-27 16:01:04 +03:00
Shakar
b2a9bee17a Adds SIDEKIQ__REDIS_URL
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
2023-04-06 11:21:26 +03:00
Shakar
9fc3370f81 Adds Redis__URL
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
2023-04-06 10:55:51 +03:00
Shakar Bakr
4f2255c4b3 Changes the name of the database connection string env variable
Adds REDIS__CONNECTION_STRING

Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
2023-04-05 02:17:16 +03:00
Shakar
e46c18d86f S3__REGION is not needed.
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
2023-04-04 17:13:05 +03:00
5 changed files with 97 additions and 63 deletions

View File

@@ -22,7 +22,7 @@ env:
jobs:
deploy:
timeout-minutes: 10
runs-on: ubuntu-20.04
runs-on: [self-hosted, ubuntu-jammy, public]
environment:
url: ${{ inputs.env_url }}
name: ${{ inputs.env_name }}
@@ -32,7 +32,9 @@ jobs:
uses: actions/checkout@v3
- name: Kubectl tool installer
uses: Azure/setup-kubectl@v3
uses: azure/setup-kubectl@v3
with:
version: v1.25.8
- uses: azure/k8s-set-context@v3
with:

View File

@@ -4,44 +4,46 @@ This document provides a brief description of the environment variables that are
The following table lists the environment variables that are common to all DIT micro-service applications, along with their descriptions.
| Environment Variable | Description |
| :--------------------------- | :------------------------------------------------------------------------ |
| CAS\_\_URL | URL for the Central Authentication Service (CAS) |
| CAS\_\_M2M_CLIENT_ID | Client ID for machine-to-machine authentication with the CAS |
| CAS\_\_M2M_CLIENT_SECRET | Client secret for machine-to-machine authentication with the CAS |
| DATABASE\_\_CONNECTIONSTRING | The connection string of database server |
| DATABASE\_\_URL | The URL format for the connection string of database server |
| DATABASE\_\_HOST | The host name or IP address of the database server |
| DATABASE\_\_USERNAME | The username for accessing the database |
| DATABASE\_\_PASSWORD | The password for accessing the database |
| DATABASE\_\_NAME | The name of the database |
| DATABASE\_\_PORT | The port number of the database server |
| S3\_\_REGION | The AWS region of the S3 bucket |
| S3\_\_ENDPOINT | The endpoint URL of the S3 bucket |
| S3\_\_ACCESS_KEY_ID | The access key ID for accessing the S3 bucket |
| S3\_\_SECRET_ACCESS_KEY | The secret access key for accessing the S3 bucket |
| S3\_\_SELF_BUCKET | The name of the S3 bucket used for storing self-related files |
| S3\_\_UPLOADS_API_BUCKET | The name of the S3 bucket used for storing uploaded files via Uploads API |
| SIDEKIQ\_\_USERNAME | The username for accessing the Sidekiq web interface |
| SIDEKIQ\_\_PASSWORD | The password for accessing the Sidekiq web interface |
| REDIS_SENTINEL\_\_HOST | The host name or IP address of the Redis Sentinel server |
| REDIS_SENTINEL\_\_PORT | The port number of the Redis Sentinel server |
| REDIS_SENTINEL\_\_PASSWORD | The password for accessing the Redis Sentinel server |
| REDIS_SENTINEL\_\_MASTER | The name of the Redis Sentinel master |
| REDIS\_\_PASSWORD | The password for accessing the Redis server |
| REDIS\_\_DB | The number of the Redis database |
| SIDEKIQ\_\_REDIS_DB | The number of the Redis database for Sidekiq |
| SENTRY\_\_DSN | The data source name (DSN) for Sentry error tracking |
| SENTRY\_\_TRACE_RATE | The sampling rate for Sentry performance tracing |
| SENTRY\_\_ENVIRONMENT | The environment name for Sentry error tracking |
| GATEWAY\_\_CERTIFICATE | The certificate file for accessing the gateway service |
| RABBITMQ\_\_URL | The URL the RabbitMQ server |
| RABBITMQ\_\_HOST | The host name or IP address of the RabbitMQ server |
| RABBITMQ\_\_PORT | The port number of the RabbitMQ server |
| RABBITMQ\_\_VHOST | The virtual host name of the RabbitMQ server |
| RABBITMQ\_\_USERNAME | The username for accessing the RabbitMQ server |
| RABBITMQ\_\_PASSWORD | The password for accessing the RabbitMQ server |
| RABBITMQ\_\_EXCHANGE_NAME | The name of the exchange for RabbitMQ server |
| Environment Variable | Description |
| :---------------------------- | :------------------------------------------------------------------------ |
| CAS\_\_URL | URL for the Central Authentication Service (CAS) |
| CAS\_\_M2M_CLIENT_ID | Client ID for machine-to-machine authentication with the CAS |
| CAS\_\_M2M_CLIENT_SECRET | Client secret for machine-to-machine authentication with the CAS |
| DATABASE\_\_CONNECTION_STRING | The connection string of database server |
| DATABASE\_\_URL | The URL format for the connection string of database server |
| DATABASE\_\_HOST | The host name or IP address of the database server |
| DATABASE\_\_USERNAME | The username for accessing the database |
| DATABASE\_\_PASSWORD | The password for accessing the database |
| DATABASE\_\_NAME | The name of the database |
| DATABASE\_\_PORT | The port number of the database server |
| S3\_\_ENDPOINT | The endpoint URL of the S3 bucket |
| S3\_\_ACCESS_KEY_ID | The access key ID for accessing the S3 bucket |
| S3\_\_SECRET_ACCESS_KEY | The secret access key for accessing the S3 bucket |
| S3\_\_SELF_BUCKET | The name of the S3 bucket used for storing self-related files |
| S3\_\_UPLOADS_API_BUCKET | The name of the S3 bucket used for storing uploaded files via Uploads API |
| SIDEKIQ\_\_USERNAME | The username for accessing the Sidekiq web interface |
| SIDEKIQ\_\_PASSWORD | The password for accessing the Sidekiq web interface |
| SIDEKIQ\_\_REDIS_URL | The URL of the redis database used by the Sidekiq web interface |
| REDIS\_\_URL | The URL format for the connection string of redis database server |
| REDIS\_\_CONNECTION_STRING | The connection string of redis database server |
| REDIS_SENTINEL\_\_HOST | The host name or IP address of the Redis Sentinel server |
| REDIS_SENTINEL\_\_PORT | The port number of the Redis Sentinel server |
| REDIS_SENTINEL\_\_PASSWORD | The password for accessing the Redis Sentinel server |
| REDIS_SENTINEL\_\_MASTER | The name of the Redis Sentinel master |
| REDIS\_\_PASSWORD | The password for accessing the Redis server |
| REDIS\_\_DB | The number of the Redis database |
| SIDEKIQ\_\_REDIS_DB | The number of the Redis database for Sidekiq |
| SENTRY\_\_DSN | The data source name (DSN) for Sentry error tracking |
| SENTRY\_\_TRACE_RATE | The sampling rate for Sentry performance tracing |
| SENTRY\_\_ENVIRONMENT | The environment name for Sentry error tracking |
| GATEWAY\_\_CERTIFICATE | The certificate file for accessing the gateway service |
| RABBITMQ\_\_URL | The URL the RabbitMQ server |
| RABBITMQ\_\_HOST | The host name or IP address of the RabbitMQ server |
| RABBITMQ\_\_PORT | The port number of the RabbitMQ server |
| RABBITMQ\_\_VHOST | The virtual host name of the RabbitMQ server |
| RABBITMQ\_\_USERNAME | The username for accessing the RabbitMQ server |
| RABBITMQ\_\_PASSWORD | The password for accessing the RabbitMQ server |
| RABBITMQ\_\_EXCHANGE_NAME | The name of the exchange for RabbitMQ server |
## Environment Variables for Micro-Service Applications

View File

@@ -1,15 +0,0 @@
namespace: dit-docs
targetCustomizations:
- name: development
clusterSelector:
matchLabels:
env: dev
kustomize:
dir: development
- name: production
clusterSelector:
matchLabels:
env: prod
kustomize:
dir: production

59
package-lock.json generated
View File

@@ -11,7 +11,7 @@
"@docusaurus/core": "2.0.0-beta.15",
"@docusaurus/preset-classic": "2.0.0-beta.15",
"@mdx-js/react": "^1.6.21",
"clsx": "^1.1.1",
"clsx": "^2.0.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"
@@ -2318,6 +2318,14 @@
"react-dom": "^16.8.4 || ^17.0.0"
}
},
"node_modules/@docusaurus/theme-classic/node_modules/clsx": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
"engines": {
"node": ">=6"
}
},
"node_modules/@docusaurus/theme-common": {
"version": "2.0.0-beta.15",
"resolved": "https://registry.npmjs.org/@docusaurus/theme-common/-/theme-common-2.0.0-beta.15.tgz",
@@ -2340,6 +2348,14 @@
"react-dom": "^16.8.4 || ^17.0.0"
}
},
"node_modules/@docusaurus/theme-common/node_modules/clsx": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
"engines": {
"node": ">=6"
}
},
"node_modules/@docusaurus/theme-search-algolia": {
"version": "2.0.0-beta.15",
"resolved": "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.0.0-beta.15.tgz",
@@ -2368,6 +2384,14 @@
"react-dom": "^16.8.4 || ^17.0.0"
}
},
"node_modules/@docusaurus/theme-search-algolia/node_modules/clsx": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
"engines": {
"node": ">=6"
}
},
"node_modules/@docusaurus/theme-translations": {
"version": "2.0.0-beta.15",
"resolved": "https://registry.npmjs.org/@docusaurus/theme-translations/-/theme-translations-2.0.0-beta.15.tgz",
@@ -4361,9 +4385,9 @@
}
},
"node_modules/clsx": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz",
"integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz",
"integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==",
"engines": {
"node": ">=6"
}
@@ -14320,6 +14344,13 @@
"prismjs": "^1.23.0",
"react-router-dom": "^5.2.0",
"rtlcss": "^3.3.0"
},
"dependencies": {
"clsx": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
}
}
},
"@docusaurus/theme-common": {
@@ -14334,6 +14365,13 @@
"parse-numeric-range": "^1.3.0",
"tslib": "^2.3.1",
"utility-types": "^3.10.0"
},
"dependencies": {
"clsx": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
}
}
},
"@docusaurus/theme-search-algolia": {
@@ -14355,6 +14393,13 @@
"lodash": "^4.17.20",
"tslib": "^2.3.1",
"utility-types": "^3.10.0"
},
"dependencies": {
"clsx": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
"integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
}
}
},
"@docusaurus/theme-translations": {
@@ -15893,9 +15938,9 @@
}
},
"clsx": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz",
"integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA=="
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz",
"integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q=="
},
"collapse-white-space": {
"version": "1.0.6",

View File

@@ -17,7 +17,7 @@
"@docusaurus/core": "2.0.0-beta.15",
"@docusaurus/preset-classic": "2.0.0-beta.15",
"@mdx-js/react": "^1.6.21",
"clsx": "^1.1.1",
"clsx": "^2.0.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1"