forked from UtrechtUniversity/src-component-galaxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve interactive tool support (UtrechtUniversity#20)
* Update docs * Improve interactive tool support (Pulsar Embedded)
- Loading branch information
Showing
7 changed files
with
68 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
--- | ||
- ansible.builtin.template: | ||
- name: Add interactive tool proxy conf for nginx | ||
ansible.builtin.template: | ||
src: "templates/nginx/galaxy-gie-proxy.j2" | ||
dest: "/etc/nginx/conf.d/gie-server.conf" | ||
mode: "0640" | ||
owner: "www-data" | ||
group: "www-data" | ||
notify: restart nginx | ||
|
||
- name: Remove comment to activate default interactive tools | ||
# match [\d\D\n] to match digits, non-digits, and newlines -- this is because .* does not match newlines in ansible.builtin.replace | ||
ansible.builtin.replace: | ||
path: "{{ galaxy_config_dir }}/tool_conf.xml" | ||
regexp: '\s*<!--\s*\n.*(<section id="interactivetools" name="Interactive tools">[\d\D\n]*</section>)\n\s*-->' | ||
replace: '\n \1' |
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,22 +1,32 @@ | ||
<job_conf> | ||
<handlers assign_with="db-skip-locked" /> | ||
<plugins workers="4"> | ||
<plugin id="local" type="runner" load="galaxy.jobs.runners.local:LocalJobRunner"/> | ||
<plugin id="pulsar_embedded" type="runner" load="galaxy.jobs.runners.pulsar:PulsarEmbeddedJobRunner"> | ||
<param id="pulsar_config">/srv/galaxy/config/pulsar_app.yml</param> | ||
</plugin> | ||
</plugins> | ||
<destinations default="docker_dispatch"> | ||
<destinations default="{{ 'docker_dispatch' if _galaxy_jobs_docker else 'local' }}"> | ||
<destination id="local" runner="local"/> | ||
<destination id="docker_local" runner="local"> | ||
{% if _galaxy_jobs_docker %} | ||
<destination id="docker_local" runner="{{ 'pulsar' if _galaxy_jobs_pulsar_embedded else 'local' }}"> | ||
<param id="docker_enabled">true</param> | ||
<param id="docker_volumes">$defaults</param> | ||
<param id="docker_sudo">false</param> | ||
<param id="docker_net">bridge</param> | ||
<param id="docker_auto_rm">true</param> | ||
<param id="docker_set_user"></param> | ||
<param id="require_container">true</param> | ||
{% if _galaxy_jobs_pulsar_embedded %} | ||
<param id="container_monitor_result">callback</param> | ||
<env id="REQUESTS_CA_BUNDLE">/etc/ssl/certs/ca-certificates.crt</env> | ||
{% endif %} | ||
</destination> | ||
<destination id="docker_dispatch" runner="dynamic"> | ||
<param id="type">docker_dispatch</param> | ||
<param id="docker_destination_id">docker_local</param> | ||
<param id="default_destination_id">local</param> | ||
</destination> | ||
{% endif %} | ||
</destinations> | ||
</job_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,16 @@ | ||
--- | ||
|
||
# The path where per-job directories will be created | ||
staging_directory: "{{ galaxy_job_working_directory }}/_pulsar_embedded" | ||
|
||
# Where Pulsar state information will be stored (e.g. currently active jobs) | ||
persistence_directory: "{{ galaxy_mutable_data_dir }}/pulsar" | ||
|
||
# Where to find Galaxy tool dependencies | ||
tool_dependency_dir: "{{ galaxy_tool_dependency_dir }}" | ||
|
||
# How to run jobs (see https://pulsar.readthedocs.io/en/latest/job_managers.html) | ||
managers: | ||
_default_: | ||
type: queued_python | ||
num_concurrent_jobs: 1 |
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