-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
31 changed files
with
776 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Enable auto-env through the sdkman_auto_env config | ||
# Add key=value pairs of SDKs to use below | ||
java=17.0.9-tem | ||
java=11.0.11.hs-adpt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Looking for the MySQL docs? Checkout the [Cromwell documentation](https://cromwell.readthedocs.io/en/develop/Configuring/#database)! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM broadinstitute/cromwell:develop | ||
|
||
RUN git clone https://github.com/vishnubob/wait-for-it.git | ||
RUN mkdir cromwell-working-dir | ||
WORKDIR cromwell-working-dir | ||
|
||
COPY ./app-config /app-config | ||
|
||
ENTRYPOINT ["/bin/sh", "-c"] |
61 changes: 61 additions & 0 deletions
61
scripts/docker-compose-mysql/compose/cromwell/app-config/cromwell-application.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
include required(classpath("application")) | ||
|
||
# Note: If you spot a mistake in this configuration sample, please let us know by making an issue at: | ||
# https://github.com/broadinstitute/cromwell/issues | ||
|
||
call-caching { | ||
enabled = false | ||
} | ||
|
||
backend { | ||
default = "Local" | ||
providers { | ||
Local { | ||
actor-factory = "cromwell.backend.impl.sfs.config.ConfigBackendLifecycleActorFactory" | ||
config { | ||
run-in-background = true | ||
runtime-attributes = "String? docker Int? max_runtime = 2" | ||
submit = "/bin/bash ${script}" | ||
submit-docker = "docker run --rm -v ${cwd}:${docker_cwd} -i ${docker} /bin/bash < ${script}" | ||
|
||
# Root directory where Cromwell writes job results. This directory must be | ||
# visible and writeable by the Cromwell process as well as the jobs that Cromwell | ||
# launches. | ||
root: "cromwell-executions" | ||
|
||
filesystems { | ||
local { | ||
localization: [ | ||
"soft-link", "hard-link", "copy" | ||
] | ||
|
||
caching { | ||
duplication-strategy: [ | ||
"soft-link" | ||
] | ||
|
||
# Possible values: file, path | ||
# "file" will compute an md5 hash of the file content. | ||
# "path" will compute an md5 hash of the file path. This strategy will only be effective if the duplication-strategy (above) is set to "soft-link", | ||
# in order to allow for the original file path to be hashed. | ||
hashing-strategy: "path" | ||
|
||
# When true, will check if a sibling file with the same name and the .md5 extension exists, and if it does, use the content of this file as a hash. | ||
# If false or the md5 does not exist, will proceed with the above-defined hashing strategy. | ||
check-sibling-md5: false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
database { | ||
db.url = "jdbc:mysql://mysql-db/cromwell_db?allowPublicKeyRetrieval=true&useSSL=false&rewriteBatchedStatements=true" | ||
db.user = "cromwell" | ||
db.password = "cromwell" | ||
db.driver = "com.mysql.cj.jdbc.Driver" | ||
profile = "slick.jdbc.MySQLProfile$" | ||
db.connectionTimeout = 15000 | ||
} |
4 changes: 4 additions & 0 deletions
4
scripts/docker-compose-mysql/compose/mysql/init/init_user.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CREATE USER 'cromwell'@'localhost' IDENTIFIED BY 'cromwell'; | ||
GRANT ALL PRIVILEGES ON cromwell_db.* TO 'cromwell'@'localhost' WITH GRANT OPTION; | ||
CREATE USER 'cromwell'@'%' IDENTIFIED BY 'cromwell'; | ||
GRANT ALL PRIVILEGES ON cromwell_db.* TO 'cromwell'@'%' WITH GRANT OPTION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: '2' | ||
services: | ||
cromwell: | ||
build: | ||
context: ./compose/cromwell | ||
volumes: | ||
- ./cromwell-executions:/cromwell-working-dir/cromwell-executions | ||
command: ["/wait-for-it/wait-for-it.sh mysql-db:3306 -t 120 -- java -Dconfig.file=/app-config/cromwell-application.conf -jar /app/cromwell.jar server"] | ||
links: | ||
- mysql-db | ||
ports: | ||
- "80:8000" | ||
mysql-db: | ||
image: "mysql:5.7" | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=cromwell | ||
- MYSQL_DATABASE=cromwell_db | ||
volumes: | ||
- ./compose/mysql/init:/docker-entrypoint-initdb.d | ||
- ./compose/mysql/data:/var/lib/mysql | ||
ports: | ||
- "3307:3306" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '2' | ||
services: | ||
cromwell: | ||
volumes: | ||
- $HOME/.config/gcloud:/root/.config/gcloud | ||
- ./jes-cromwell/jes-config:/app-config | ||
environment: | ||
- GOOGLE_APPLICATION_CREDENTIALS=/root/.config/gcloud/application_default_credentials.json | ||
|
73 changes: 73 additions & 0 deletions
73
scripts/docker-compose-mysql/jes-cromwell/jes-config/application.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
include required(classpath("application")) | ||
|
||
# Note: If you spot a mistake in this configuration sample, please let us know by making an issue at: | ||
# https://github.com/broadinstitute/cromwell/issues | ||
|
||
system.new-workflow-poll-rate=1 | ||
|
||
google { | ||
|
||
application-name = "cromwell" | ||
|
||
auths = [ | ||
{ | ||
name = "application-default" | ||
scheme = "application_default" | ||
} | ||
] | ||
} | ||
|
||
engine { | ||
filesystems { | ||
gcs { | ||
auth = "application-default" | ||
} | ||
} | ||
} | ||
|
||
call-caching { | ||
enabled = false | ||
} | ||
|
||
backend { | ||
default = "Jes" | ||
providers { | ||
Jes { | ||
actor-factory = "cromwell.backend.impl.jes.JesBackendLifecycleActorFactory" | ||
config { | ||
// Google project | ||
project = "broad-dsde-cromwell-dev" | ||
|
||
// Base bucket for workflow executions | ||
root = "gs://tjeandet-cromwell-execs" | ||
|
||
// Polling for completion backs-off gradually for slower-running jobs. | ||
// This is the maximum polling interval (in seconds): | ||
maximum-polling-interval = 600 | ||
|
||
genomics { | ||
// A reference to an auth defined in the `google` stanza at the top. This auth is used to create | ||
// Pipelines and manipulate auth JSONs. | ||
auth = "application-default" | ||
// Endpoint for APIs, no reason to change this unless directed by Google. | ||
endpoint-url = "https://genomics.googleapis.com/" | ||
} | ||
|
||
filesystems { | ||
gcs { | ||
// A reference to a potentially different auth for manipulating files via engine functions. | ||
auth = "application-default" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
database { | ||
db.url = "jdbc:mysql://mysql-db/cromwell_db?useSSL=false&rewriteBatchedStatements=true" | ||
db.user = "cromwell" | ||
db.password = "cromwell" | ||
db.driver = "com.mysql.cj.jdbc.Driver" | ||
profile = "slick.jdbc.MySQLProfile$" | ||
} |
Oops, something went wrong.