Skip to content
Snippets Groups Projects
Unverified Commit 265b1a37 authored by Todor Kondic's avatar Todor Kondic
Browse files

...

parent 129769da
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ proxy:
heartbeat-rate: 10000
heartbeat-timeout: 60000
port: 8080
container-wait-time: 600000
bind-address: 127.0.0.1
authentication: simple
admin-groups: scientists
......@@ -28,10 +29,14 @@ proxy:
container-cmd: ["R", "-e", "shinyproxy::run_01_hello()"]
container-image: openanalytics/shinyproxy-demo
access-groups: [scientists, mathematicians]
- id: 06_tabsets
container-cmd: ["R", "-e", "shinyproxy::run_06_tabsets()"]
container-image: openanalytics/shinyproxy-demo
access-groups: scientists
- id: shinyscreen
container-image: r-r-shinyscreen
display-name: Shinyscreen
port: 7777
container-volumes: [ "/scratch/proxer/shinyscreen:/scratch" ]
container-cmd: [ "R", "-e", "library(future);future::plan('multisession');topl=Sys.getenv('SHINYPROXY_USERNAME');fpath=file.path('/scratch/projects',topl);dir.create(fpath);shargs=list(host='0.0.0.0',launch.browser=F,port=7777);shinyscreen::app(indir='/scratch/input_data',userdir=fpath,shiny_args=shargs)"]
access-groups:
- scientists
logging:
file:
......
......@@ -134,7 +134,9 @@
src: files/etc/systemd/system/docker.service.d/override.conf
dest: /etc/systemd/system/docker.service.d/override.conf
mode: '0644'
notify: Restart docker.
notify:
- Reload systemd.
- Restart docker.
- name: Copy config file for shinyproxy.
ansible.builtin.copy:
......@@ -151,6 +153,17 @@
mode: '0644'
notify: Restart shinyproxy.
- name: Copy shinyproxy docker image.
ansible.builtin.copy:
src: files/scratch/docker-shinyscreen-1.0.7.tar.gz
dest: /scratch/docker-shinyscreen-1.0.7.tar.gz
- name: Load docker image.
ansible.builtin.shell:
cmd: docker load -i docker-shinyscreen-1.0.7.tar.gz && touch loaded.shinyscreen
creates: loaded.shinyscreen
chdir: /scratch
......@@ -167,3 +180,6 @@
ansible.builtin.service:
name: shinyproxy
state: restarted
- name: Reload systemd.
ansible.builtin.systemd:
daemon_reload: yes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment