Skip to content

Commit 1320507

Browse files
bebosudoCopilot
andauthored
feat: Allow Platform v24+ to communicate with a MySQL db NOTASK (#902)
* Allow Platform v24+ to communicate with a MySQL db * Add back the closing backtick Co-authored-by: Copilot <[email protected]> Signed-off-by: Alberto Chiusole <[email protected]> * Use equal sign in bash excerpt instead of colon sign Co-authored-by: Copilot <[email protected]> Signed-off-by: Alberto Chiusole <[email protected]> --------- Signed-off-by: Alberto Chiusole <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent b335130 commit 1320507

File tree

30 files changed

+330
-330
lines changed

30 files changed

+330
-330
lines changed

platform-enterprise_docs/enterprise/_templates/k8s/configmap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ data:
88
TOWER_SERVER_URL: "https://<YOUR PUBLIC TOWER HOST NAME>"
99
TOWER_CONTACT_EMAIL: "[email protected]"
1010
TOWER_JWT_SECRET: "ReplaceThisWithALongSecretString"
11-
TOWER_DB_URL: "jdbc:mysql://<YOUR DB HOST NAME AND PORT>/tower"
11+
TOWER_DB_URL: "jdbc:mysql://<YOUR DB HOST NAME AND PORT>/tower?permitMysqlScheme=true"
1212
TOWER_DB_DRIVER: "org.mariadb.jdbc.Driver"
1313
TOWER_DB_USER: "tower"
1414
TOWER_DB_PASSWORD: "<YOUR DB PASSWORD>"

platform-enterprise_docs/enterprise/configuration/aws_parameter_store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Due to the order of operations when deploying Seqera Enterprise, some configurat
2121
| ------------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
2222
| `TOWER_DB_USER` | The user account to access your database. If you are using an external database, you must create this user manually. **For installation in a new environment, this value must be set as an environment variable.** | Default: `tower` |
2323
| `TOWER_DB_PASSWORD` | The user password to access your database. If you are using an external database, you must create this password manually. **For installation in a new environment, this value must be set as an environment variable.** | Default: `tower` |
24-
| `TOWER_DB_URL` | The URL to access your database. **For installation in a new environment, this value must be set as an environment variable.** | Example: `jdbc:mysql://db:3306/tower` |
24+
| `TOWER_DB_URL` | The URL to access your database. **For installation in a new environment, this value must be set as an environment variable.** | Example: `jdbc:mysql://db:3306/tower?permitMysqlScheme=true` |
2525
| `TOWER_APP_NAME` | Application name. To run multiple instances of the same Seqera account, each instance must have a unique name, e.g., `tower-dev` and `tower-prod`. **Can also be set in `tower.yml` with `tower.appName`.** | Default: `tower` |
2626
| `TOWER_ENABLE_AWS_SES` | Set `true` to enable AWS Simple Email Service for sending Seqera emails instead of SMTP. | Default: `false` |
2727
| `TOWER_ENABLE_PLATFORMS` | A comma-separated list of execution backends to enable. **At least one is required.** | `altair-platform,awsbatch-platform,awscloud-platform,azbatch-platform,eks-platform,googlebatch-platform,googlecloud-platform,gke-platform,k8s-platform,local-platform,lsf-platform,moab-platform,slurm-platform` |
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
---
2-
-
2+
-
33
AWS Parameter Store: '`{prefix}/datasources/default/username`'
4-
Description: >
4+
Description: >
55
The user account to access your database.
66
If you are using an external database, you must create this user manually. **For installation in a new environment, this value must be set as an environment variable.**
77
Value: 'Default: `tower`'
8-
-
8+
-
99
AWS Parameter Store: '`{prefix}/datasources/default/password`'
10-
Description: >
10+
Description: >
1111
The user password to access your database.
1212
If you are using an external database, you must create this password manually. **For installation in a new environment, this value must be set as an environment variable.**
1313
Value: 'Default: `tower`'
14-
-
14+
-
1515
AWS Parameter Store: '`{prefix}/datasources/default/url`'
16-
Description: >
16+
Description: >
1717
The URL to access your database. **For installation in a new environment, this value must be set as an environment variable.**
18-
Value: '`jdbc:mysql://db:3306/tower`'
18+
Value: '`jdbc:mysql://db:3306/tower?permitMysqlScheme=true`'
1919
-
2020
AWS Parameter Store: '`{prefix}/datasources/default/minPoolSize`'
21-
Description: >
22-
Minimum database connection pool size.
21+
Description: >
22+
Minimum database connection pool size.
2323
Value: 'Default: `5`'
24-
-
24+
-
2525
AWS Parameter Store: '`{prefix}/datasources/default/maxPoolSize`'
26-
Description: >
27-
Maximum database connection pool size.
26+
Description: >
27+
Maximum database connection pool size.
2828
Value: 'Default: `10`'
29-
-
29+
-
3030
AWS Parameter Store: '`{prefix}/datasources/default/maxLifetime`'
31-
Description: >
32-
Maximum lifespan of database connections, in milliseconds.
31+
Description: >
32+
Maximum lifespan of database connections, in milliseconds.
3333
Value: 'Default: `1800000`'
34-
-
34+
-
3535
AWS Parameter Store: '`{prefix}/redisson/uri`'
36-
Description: >
36+
Description: >
3737
The URL to access your Seqera Redis instance.
3838
Value: 'Example: `redis://redis:6379`'
39-
-
39+
-
4040
AWS Parameter Store: '`{prefix}/redisson/password`'
41-
Description: >
41+
Description: >
4242
The password of your Seqera Redis instance.
43-
Value:
43+
Value:
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
---
2-
-
2+
-
33
Environment variable: '`TOWER_DB_USER`'
4-
Description: >
4+
Description: >
55
The user account to access your database.
66
If you are using an external database, you must create this user manually.
77
Value: 'Default: `tower`'
8-
-
8+
-
99
Environment variable: '`TOWER_DB_PASSWORD`'
10-
Description: >
10+
Description: >
1111
The user password to access your database.
1212
If you are using an external database, you must create this password manually.
1313
Value: 'Default: `tower`'
14-
-
14+
-
1515
Environment variable: '`TOWER_DB_URL`'
16-
Description: >
16+
Description: >
1717
The URL to access your database.
18-
Value: 'Example: `jdbc:mysql://db:3306/tower`'
19-
-
18+
Value: 'Example: `jdbc:mysql://db:3306/tower?permitMysqlScheme=true`'
19+
-
2020
Environment variable: '`TOWER_DB_MIN_POOL_SIZE`'
21-
Description: >
22-
Minimum database connection pool size.
21+
Description: >
22+
Minimum database connection pool size.
2323
Value: 'Default: `5`'
24-
-
24+
-
2525
Environment variable: '`TOWER_DB_MAX_POOL_SIZE`'
26-
Description: >
27-
Maximum database connection pool size.
26+
Description: >
27+
Maximum database connection pool size.
2828
Value: 'Default: `10`'
29-
-
29+
-
3030
Environment variable: '`TOWER_DB_MAX_LIFETIME`'
31-
Description: >
32-
Maximum lifespan of database connections, in milliseconds.
31+
Description: >
32+
Maximum lifespan of database connections, in milliseconds.
3333
Value: 'Default: `1800000`'
34-
-
34+
-
3535
Environment variable: '`TOWER_REDIS_URL`'
36-
Description: >
37-
The URL to access your Seqera Redis instance.
36+
Description: >
37+
The URL to access your Seqera Redis instance.
3838
Value: 'Example: `redis://redis:6379`'
39-
-
39+
-
4040
Environment variable: '`TOWER_REDIS_PASSWORD`'
41-
Description: >
41+
Description: >
4242
The password of your Seqera Redis instance.
43-
Value:
43+
Value:
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
---
2-
-
2+
-
33
tower.yml: '`datasources.default.username`'
4-
Description: >
4+
Description: >
55
The user account to access your database.
66
If you are using an external database, you must create this user manually. **For installation in a new environment, this value must be set as an environment variable.**
77
Value: 'Default: `tower`'
8-
-
8+
-
99
tower.yml: '`datasources.default.password`'
10-
Description: >
10+
Description: >
1111
The user password to access your database.
1212
If you are using an external database, you must create this password manually. **For installation in a new environment, this value must be set as an environment variable.**
1313
Value: 'Default: `tower`'
14-
-
14+
-
1515
tower.yml: '`datasources.default.url`'
16-
Description: >
16+
Description: >
1717
The URL to access your database. **For installation in a new environment, this value must be set as an environment variable.**
18-
Value: 'Example: `jdbc:mysql://db:3306/tower`'
19-
-
18+
Value: 'Example: `jdbc:mysql://db:3306/tower?permitMysqlScheme=true`'
19+
-
2020
tower.yml: '`datasources.default.minPoolSize`'
21-
Description: >
22-
Minimum database connection pool size.
21+
Description: >
22+
Minimum database connection pool size.
2323
Value: 'Default: `5`'
24-
-
24+
-
2525
tower.yml: '`datasources.default.maxPoolSize`'
26-
Description: >
27-
Maximum database connection pool size.
26+
Description: >
27+
Maximum database connection pool size.
2828
Value: 'Default: `10`'
29-
-
29+
-
3030
tower.yml: '`datasources.default.maxLifetime`'
31-
Description: >
32-
Maximum lifespan of database connections, in milliseconds.
31+
Description: >
32+
Maximum lifespan of database connections, in milliseconds.
3333
Value: 'Default: `1800000`'
34-
-
34+
-
3535
tower.yml: '`redisson.uri`'
36-
Description: >
36+
Description: >
3737
The URL to access your Seqera Redis instance.
3838
Value: 'Example: `redis://redis:6379`'
39-
-
39+
-
4040
tower.yml: '`redisson.password`'
41-
Description: >
41+
Description: >
4242
The password of your Seqera Redis instance.
43-
Value:
43+
Value:

platform-enterprise_docs/enterprise/general_troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ This error means that Seqera is unable to connect to the database and the `JDBC`
147147
To resolve this issue for `Europe/Amsterdam` time zone, append `serverTimezone` to the value of [`TOWER_DB_URL`](./configuration/overview#seqera-and-redis-databases):
148148
149149
```bash
150-
export TOWER_DB_URL": "jdbc:mysql://<YOUR_DATABASE_IP>:3306/tower?serverTimezone=Europe/Amsterdam"
150+
export TOWER_DB_URL="jdbc:mysql://<YOUR_DATABASE_IP>:3306/tower?permitMysqlScheme=true&serverTimezone=Europe/Amsterdam"
151151
```
152152
153153
**_java.io.IOException: Unsupported protocol version 252_ error while completed or terminated runs display as in progress on Seqera**

platform-enterprise_versioned_docs/version-24.1/enterprise/_templates/k8s/configmap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ data:
88
TOWER_SERVER_URL: "https://<YOUR PUBLIC TOWER HOST NAME>"
99
TOWER_CONTACT_EMAIL: "[email protected]"
1010
TOWER_JWT_SECRET: "ReplaceThisWithALongSecretString"
11-
TOWER_DB_URL: "jdbc:mysql://<YOUR DB HOST NAME AND PORT>/tower"
11+
TOWER_DB_URL: "jdbc:mysql://<YOUR DB HOST NAME AND PORT>/tower?permitMysqlScheme=true"
1212
TOWER_DB_DRIVER: "org.mariadb.jdbc.Driver"
1313
TOWER_DB_USER: "tower"
1414
TOWER_DB_PASSWORD: "<YOUR DB PASSWORD>"

platform-enterprise_versioned_docs/version-24.1/enterprise/configuration/aws_parameter_store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Due to the order of operations when deploying Seqera Enterprise, some configurat
2121
| ------------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
2222
| `TOWER_DB_USER` | The user account to access your database. If you are using an external database, you must create this user manually. **For installation in a new environment, this value must be set as an environment variable.** | Default: `tower` |
2323
| `TOWER_DB_PASSWORD` | The user password to access your database. If you are using an external database, you must create this password manually. **For installation in a new environment, this value must be set as an environment variable.** | Default: `tower` |
24-
| `TOWER_DB_URL` | The URL to access your database. **For installation in a new environment, this value must be set as an environment variable.** | Example: `jdbc:mysql://db:3306/tower` |
24+
| `TOWER_DB_URL` | The URL to access your database. **For installation in a new environment, this value must be set as an environment variable.** | Example: `jdbc:mysql://db:3306/tower?permitMysqlScheme=true` |
2525
| `TOWER_APP_NAME` | Application name. To run multiple instances of the same Seqera account, each instance must have a unique name, e.g., `tower-dev` and `tower-prod`. **Can also be set in `tower.yml` with `tower.appName`.** | Default: `tower` |
2626
| `TOWER_ENABLE_AWS_SES` | Set `true` to enable AWS Simple Email Service for sending Seqera emails instead of SMTP. | Default: `false` |
2727
| `TOWER_ENABLE_PLATFORMS` | A comma-separated list of execution backends to enable. **At least one is required.** | `altair-platform,awsbatch-platform,azbatch-platform,eks-platform,googlebatch-platform,gke-platform,k8s-platform,local-platform,lsf-platform,moab-platform,slurm-platform` |
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
---
2-
-
2+
-
33
AWS Parameter Store: '`{prefix}/datasources/default/username`'
4-
Description: >
4+
Description: >
55
The user account to access your database.
66
If you are using an external database, you must create this user manually. **For installation in a new environment, this value must be set as an environment variable.**
77
Value: 'Default: `tower`'
8-
-
8+
-
99
AWS Parameter Store: '`{prefix}/datasources/default/password`'
10-
Description: >
10+
Description: >
1111
The user password to access your database.
1212
If you are using an external database, you must create this password manually. **For installation in a new environment, this value must be set as an environment variable.**
1313
Value: 'Default: `tower`'
14-
-
14+
-
1515
AWS Parameter Store: '`{prefix}/datasources/default/url`'
16-
Description: >
16+
Description: >
1717
The URL to access your database. **For installation in a new environment, this value must be set as an environment variable.**
18-
Value: '`jdbc:mysql://db:3306/tower`'
18+
Value: '`jdbc:mysql://db:3306/tower?permitMysqlScheme=true`'
1919
-
2020
AWS Parameter Store: '`{prefix}/datasources/default/minPoolSize`'
21-
Description: >
22-
Minimum database connection pool size.
21+
Description: >
22+
Minimum database connection pool size.
2323
Value: 'Default: `5`'
24-
-
24+
-
2525
AWS Parameter Store: '`{prefix}/datasources/default/maxPoolSize`'
26-
Description: >
27-
Maximum database connection pool size.
26+
Description: >
27+
Maximum database connection pool size.
2828
Value: 'Default: `10`'
29-
-
29+
-
3030
AWS Parameter Store: '`{prefix}/datasources/default/maxLifetime`'
31-
Description: >
32-
Maximum lifespan of database connections, in milliseconds.
31+
Description: >
32+
Maximum lifespan of database connections, in milliseconds.
3333
Value: 'Default: `1800000`'
34-
-
34+
-
3535
AWS Parameter Store: '`{prefix}/redisson/uri`'
36-
Description: >
36+
Description: >
3737
The URL to access your Seqera Redis instance.
3838
Value: 'Example: `redis://redis:6379`'
39-
-
39+
-
4040
AWS Parameter Store: '`{prefix}/redisson/password`'
41-
Description: >
41+
Description: >
4242
The password of your Seqera Redis instance.
43-
Value:
43+
Value:
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
---
2-
-
2+
-
33
Environment variable: '`TOWER_DB_USER`'
4-
Description: >
4+
Description: >
55
The user account to access your database.
66
If you are using an external database, you must create this user manually.
77
Value: 'Default: `tower`'
8-
-
8+
-
99
Environment variable: '`TOWER_DB_PASSWORD`'
10-
Description: >
10+
Description: >
1111
The user password to access your database.
1212
If you are using an external database, you must create this password manually.
1313
Value: 'Default: `tower`'
14-
-
14+
-
1515
Environment variable: '`TOWER_DB_URL`'
16-
Description: >
16+
Description: >
1717
The URL to access your database.
18-
Value: 'Example: `jdbc:mysql://db:3306/tower`'
19-
-
18+
Value: 'Example: `jdbc:mysql://db:3306/tower?permitMysqlScheme=true`'
19+
-
2020
Environment variable: '`TOWER_DB_MIN_POOL_SIZE`'
21-
Description: >
22-
Minimum database connection pool size.
21+
Description: >
22+
Minimum database connection pool size.
2323
Value: 'Default: `5`'
24-
-
24+
-
2525
Environment variable: '`TOWER_DB_MAX_POOL_SIZE`'
26-
Description: >
27-
Maximum database connection pool size.
26+
Description: >
27+
Maximum database connection pool size.
2828
Value: 'Default: `10`'
29-
-
29+
-
3030
Environment variable: '`TOWER_DB_MAX_LIFETIME`'
31-
Description: >
32-
Maximum lifespan of database connections, in milliseconds.
31+
Description: >
32+
Maximum lifespan of database connections, in milliseconds.
3333
Value: 'Default: `1800000`'
34-
-
34+
-
3535
Environment variable: '`TOWER_REDIS_URL`'
36-
Description: >
37-
The URL to access your Seqera Redis instance.
36+
Description: >
37+
The URL to access your Seqera Redis instance.
3838
Value: 'Example: `redis://redis:6379`'
39-
-
39+
-
4040
Environment variable: '`TOWER_REDIS_PASSWORD`'
41-
Description: >
41+
Description: >
4242
The password of your Seqera Redis instance.
43-
Value:
43+
Value:

0 commit comments

Comments
 (0)